diff options
author | Amit Shah <amit.shah@redhat.com> | 2010-01-13 16:24:42 +0530 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-01-13 17:14:15 -0600 |
commit | 5cdc9b76e34d06857ee8d03ea70e8793b8af06e1 (patch) | |
tree | 1303dfbf69ca330e93301a6728d0419fe738a7d5 | |
parent | 347ed55cd109864b02dd29bb7e6cda1622e8019e (diff) |
vl.c: Remove dead assignment
clang-analyzer pointed out the value of 'sockets' is never reused.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
CC: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | vl.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -2403,17 +2403,13 @@ static void smp_parse(const char *optarg) threads = threads > 0 ? threads : 1; if (smp == 0) { smp = cores * threads * sockets; - } else { - sockets = smp / (cores * threads); } } else { if (cores == 0) { threads = threads > 0 ? threads : 1; cores = smp / (sockets * threads); } else { - if (sockets == 0) { - sockets = smp / (cores * threads); - } else { + if (sockets) { threads = smp / (cores * sockets); } } |