diff options
author | Joel Schopp <jschopp@austin.ibm.com> | 2010-07-21 15:05:17 -0500 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-07-30 23:05:52 +0200 |
commit | dca98169b8781a3e302a2c46682f2b63e560b05f (patch) | |
tree | cd14b7e14c979df7fab06cb835a9a9ab413141d7 /vl.c | |
parent | ca1d6ac657ff1cebd689b5d93784402e7ceb52c3 (diff) | |
download | qemu-dca98169b8781a3e302a2c46682f2b63e560b05f.tar.gz qemu-dca98169b8781a3e302a2c46682f2b63e560b05f.tar.bz2 qemu-dca98169b8781a3e302a2c46682f2b63e560b05f.zip |
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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |