projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca1d6ac
)
remove pointless if from vl.c
author
Joel Schopp
<jschopp@austin.ibm.com>
Wed, 21 Jul 2010 20:05:17 +0000
(15:05 -0500)
committer
Aurelien 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
patch
|
blob
|
history
diff --git
a/vl.c
b/vl.c
index
ba6ee11
..
1406831
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;