summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorJoel Schopp <jschopp@austin.ibm.com>2010-07-21 15:05:17 -0500
committerAurelien Jarno <aurelien@aurel32.net>2010-07-30 23:05:52 +0200
commitdca98169b8781a3e302a2c46682f2b63e560b05f (patch)
treecd14b7e14c979df7fab06cb835a9a9ab413141d7 /vl.c
parentca1d6ac657ff1cebd689b5d93784402e7ceb52c3 (diff)
downloadqemu-dca98169b8781a3e302a2c46682f2b63e560b05f.tar.gz
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>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c4
1 files changed, 1 insertions, 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;