From 5cdc9b76e34d06857ee8d03ea70e8793b8af06e1 Mon Sep 17 00:00:00 2001 From: Amit Shah Date: Wed, 13 Jan 2010 16:24:42 +0530 Subject: [PATCH] vl.c: Remove dead assignment clang-analyzer pointed out the value of 'sockets' is never reused. Signed-off-by: Amit Shah CC: Andre Przywara Signed-off-by: Anthony Liguori --- vl.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/vl.c b/vl.c index df2a278..06cb40d 100644 --- a/vl.c +++ b/vl.c @@ -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); } } -- 2.7.4