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:
Joel Schopp 2010-07-21 15:05:17 -05:00 committed by Aurelien Jarno
parent ca1d6ac657
commit dca98169b8

4
vl.c
View File

@ -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;