From patchwork Wed Jul 21 20:05:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3/3] remove pointless if from vl.c Date: Wed, 21 Jul 2010 10:05:17 -0000 From: jschopp@austin.ibm.com X-Patchwork-Id: 59493 Message-Id: <1279742717-10804-4-git-send-email-jschopp@austin.ibm.com> To: qemu-devel@nongnu.org Cc: Joel Schopp We already set sockets to nonzero in the code above. So this if statement always evaluates true. Remove it. Signed-off-by: Joel Schopp --- vl.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/vl.c b/vl.c index 8a5de9f..a0c28b6 100644 --- a/vl.c +++ b/vl.c @@ -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;