提交 dca98169 编写于 作者: J Joel Schopp 提交者: Aurelien Jarno

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: NJoel Schopp <jschopp@austin.ibm.com>
Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
上级 ca1d6ac6
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册