From patchwork Thu Nov 23 09:01:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Mackerras X-Patchwork-Id: 10072533 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2CD216056E for ; Thu, 23 Nov 2017 09:01:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2065E29EF6 for ; Thu, 23 Nov 2017 09:01:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 13FD429EFB; Thu, 23 Nov 2017 09:01:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8145E29EF6 for ; Thu, 23 Nov 2017 09:01:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752527AbdKWJB3 (ORCPT ); Thu, 23 Nov 2017 04:01:29 -0500 Received: from ozlabs.org ([103.22.144.67]:33269 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751771AbdKWJB0 (ORCPT ); Thu, 23 Nov 2017 04:01:26 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 3yjCx04M69z9t2h; Thu, 23 Nov 2017 20:01:24 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1511427684; bh=ij2SBWWWGm49uJK/ePHG3vm2ZE1FcaAnsbDgvfEzjOM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OVaJ2jm+BPJT3J74/N7+KCf0j7Y0MSl+CK91nr7sNFAUqp9ZM9BHTmzpefszxKEMp RbK5cqNAJtT3VhrfQgZ0wi3DLPc/PmJHoLx6E+KdEcH5cVVXsZPHkUQTxVuhNFEUGj b2P5iF8PeM/aVpOAZg/9qHem/3Qh1N9LO9NeiMbkon1GLV26KN5HJDr8f9fSzs+I5p SgG24ObYkl22p+6Qiiq1IaHM42akQrsCcZukgPxAL2u/7+Bjr858cRccNHDp1VmWOY Aag5xutLouBkGT8v8DwZJFpXWkio727K488SOMtGz1t2+7J0iSeWenaUjq+Wyfe2rG Z628dFKhqtW8Q== From: Paul Mackerras To: kvm@vger.kernel.org, kvm-ppc@vger.kernel.org Subject: [PATCH 3/5] KVM: PPC: Book3S HV: Remove useless statement Date: Thu, 23 Nov 2017 20:01:03 +1100 Message-Id: <1511427665-21660-4-git-send-email-paulus@ozlabs.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511427665-21660-1-git-send-email-paulus@ozlabs.org> References: <1511427665-21660-1-git-send-email-paulus@ozlabs.org> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This removes a statement that has no effect. It should have been removed in commit 898b25b202f3 ("KVM: PPC: Book3S HV: Simplify dynamic micro-threading code", 2017-06-22) along with the loop over the piggy-backed virtual cores. This issue was reported by Coverity. Signed-off-by: Paul Mackerras Reviewed-by: Darren Kenny --- arch/powerpc/kvm/book3s_hv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index 2d46037..597498d 100644 --- a/arch/powerpc/kvm/book3s_hv.c +++ b/arch/powerpc/kvm/book3s_hv.c @@ -2831,7 +2831,6 @@ static noinline void kvmppc_run_core(struct kvmppc_vcore *vc) */ if (!thr0_done) kvmppc_start_thread(NULL, pvc); - thr += pvc->num_threads; } /*