From dca98169b8781a3e302a2c46682f2b63e560b05f Mon Sep 17 00:00:00 2001 From: Joel Schopp Date: Wed, 21 Jul 2010 15:05:17 -0500 Subject: [PATCH] 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 --- vl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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;