vl.c: Remove dead assignment

clang-analyzer pointed out the value of 'sockets' is never reused.

Signed-off-by: Amit Shah <[email protected]>
CC: Andre Przywara <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
This commit is contained in:
Amit Shah authored and Anthony Liguori committed 2010-01-13 17:14:15 -06:00
1 parent 347ed55cd1
commit 5cdc9b76e3
1 file changed
+1 -5
+1 -5
View File
@@ -2403,17 +2403,13 @@ static void smp_parse(const char *optarg)
threads = threads > 0 ? threads : 1;
if (smp == 0) {
smp = cores * threads * sockets;
} else {
sockets = smp / (cores * threads);
}
} else {
if (cores == 0) {
threads = threads > 0 ? threads : 1;
cores = smp / (sockets * threads);
} else {
if (sockets == 0) {
sockets = smp / (cores * threads);
} else {
if (sockets) {
threads = smp / (cores * sockets);
}
}