mirror of
https://github.com/xemu-project/xemu.git
synced 2025-02-25 07:02:38 +00:00
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>
This commit is contained in:
parent
ca1d6ac657
commit
dca98169b8
2
vl.c
2
vl.c
@ -801,11 +801,9 @@ static void smp_parse(const char *optarg)
|
||||
threads = threads > 0 ? threads : 1;
|
||||
cores = smp / (sockets * threads);
|
||||
} else {
|
||||
if (sockets) {
|
||||
threads = smp / (cores * sockets);
|
||||
}
|
||||
}
|
||||
}
|
||||
smp_cpus = smp;
|
||||
smp_cores = cores > 0 ? cores : 1;
|
||||
smp_threads = threads > 0 ? threads : 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user