From: Joel Schopp Date: Wed, 21 Jul 2010 20:05:17 +0000 (-0500) Subject: remove pointless if from vl.c X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=dca98169b8781a3e302a2c46682f2b63e560b05f;p=qemu.git remove pointless if from vl.c We already set sockets to nonzero in the code above. So this if statement always evaluates true. Remove it. Signed-off-by: Joel Schopp Signed-off-by: Aurelien Jarno --- diff --git a/vl.c b/vl.c index ba6ee11ec4..140683115b 100644 --- a/vl.c +++ b/vl.c @@ -801,9 +801,7 @@ static void smp_parse(const char *optarg) threads = threads > 0 ? threads : 1; cores = smp / (sockets * threads); } else { - if (sockets) { - threads = smp / (cores * sockets); - } + threads = smp / (cores * sockets); } } smp_cpus = smp;