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 <jschopp@austin.ibm.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
diff --git a/vl.c b/vl.c index ba6ee11..1406831 100644 --- a/vl.c +++ b/vl.c
@@ -801,9 +801,7 @@ threads = threads > 0 ? threads : 1; cores = smp / (sockets * threads); } else { - if (sockets) { - threads = smp / (cores * sockets); - } + threads = smp / (cores * sockets); } } smp_cpus = smp;