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
4
vl.c
4
vl.c
@ -801,9 +801,7 @@ static void smp_parse(const char *optarg)
|
|||||||
threads = threads > 0 ? threads : 1;
|
threads = threads > 0 ? threads : 1;
|
||||||
cores = smp / (sockets * threads);
|
cores = smp / (sockets * threads);
|
||||||
} else {
|
} else {
|
||||||
if (sockets) {
|
threads = smp / (cores * sockets);
|
||||||
threads = smp / (cores * sockets);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
smp_cpus = smp;
|
smp_cpus = smp;
|
||||||
|
Loading…
Reference in New Issue
Block a user