]> xenbits.xensource.com Git - people/sstabellini/qemu-dm.git/.git/commitdiff
remove pointless if from vl.c
authorJoel Schopp <jschopp@austin.ibm.com>
Wed, 21 Jul 2010 20:05:17 +0000 (15:05 -0500)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 30 Jul 2010 21:05:52 +0000 (23:05 +0200)
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>
vl.c

diff --git a/vl.c b/vl.c
index ba6ee11ec467436be689a5bc5d3b5c23ef0287b9..140683115b36b04488110f023081b2f2dd3366b0 100644 (file)
--- 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;