Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2083868rwd; Tue, 13 Jun 2023 20:01:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ74zfxj8qK0UHU7PyDbjbcKvA0NQmVGMcn4gjfxKj6tcVwXhvhxuQ7jx1Mt3SyYrMeGu1Fp X-Received: by 2002:a17:907:3e9f:b0:971:2ead:e161 with SMTP id hs31-20020a1709073e9f00b009712eade161mr19122336ejc.6.1686711669763; Tue, 13 Jun 2023 20:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686711669; cv=none; d=google.com; s=arc-20160816; b=R6fI1YNx3n6i5XHXpkUDy9z5vaXih3E9WCFhWWRu8btHQoUYefvjhixbqlilx3E6+8 /+vYQG0UXALXyD165q1vPB7DZghDdhIhmMt5r76SYuoc4HQq+hJjN2vRfQ7ddgBblHSN tIVcBOzkINaiA3QJcmUaRfkdM4wAVGx3rgs03SZqledWUHmQcbYXI8yxQYNq6/3KElE2 5txKK/jAiWrAj6hBpzJqjMzxb6lvPGcHD/1vVgCacv08IderpQSj8Iy/Jm2+aE6c802Q UmrNN5OZRhSTBYz2yB/w1qWbsYu0J/aIuW4sHAfhu6ClB+wmxla5PemI4yxa2dUa2P9N v8CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=vs4UNOs5lQRyCNn3wwn3j9Wqc0NIccNWDJI9F1U5k7c=; b=nFxeVDK5wORmYnUsSjd4Q+wT9TDY4RfOZRxmIOfFjs2Xv6cNjnwIjW0aI8LJxfyQZ/ IokvI0QhnXYCitP7K3RQq6QroqY0zlaNxYEqZ21+BbsP83S8NycG/lYBnxBwOywAFcB6 xezJRzvw/8XCQ0jn4GUQ7nYYMSEFjS2TRRY7R0dN8UKRkuKZfxWPWYfGtIzVWh7H23s1 0WSBSVhSHAznTvvuBgEuMBxnwb2rgFJdjxrTgeHevcKa8iwIJMzSzphMsj81lhzsK4yG Qii/y8ATlAidN+GArtndBXuJ2SHg9ARsKRTaIz5NKQK36knabs4xB9cA7V2Bp0KTwAEr CAcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=c6jHFt+8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p24-20020a17090635d800b009604f4a3fe4si7693180ejb.53.2023.06.13.20.00.29; Tue, 13 Jun 2023 20:01:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=c6jHFt+8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239516AbjFNCew (ORCPT + 99 others); Tue, 13 Jun 2023 22:34:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232258AbjFNCeu (ORCPT ); Tue, 13 Jun 2023 22:34:50 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBB54123 for ; Tue, 13 Jun 2023 19:34:48 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4QgqJP5RyszBJL9v for ; Wed, 14 Jun 2023 10:34:45 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1686710085; x=1689302086; bh=/153KFImgT+gktyfP9V8RqyB2R8 agRq0rd6nSMh42WI=; b=c6jHFt+8uhaVx8AgCb70a/2HxXNGL3cV1/olgvE6wsM b/Nc7kYIM+dhAFrRDhaABSDg2lUujKDHq+BsZxMs1SazTBEeXbIS0FvG1ayEk3t+ 4YnM7iK9LskVvxahleYV2o23Bpa7DvM9Kwd08hBI0JW1QeUAI4zs+tbkLX/8OmOt ZztmzXwJSKkoOioKlzuZ3EbBAZyjZ8i0ot+vR/oO11O7YmwFW+CWF1T/9/HdZPKo t0s+ocM1sVA1guZRPlzBOLPIh19EnVvbwV4M3/3OC+f3vKdZBJdg4XH3/TLzrpMC sGrV5RCaHsceH055a+TawgjEDXyo3P2db9ADeIqMLIA== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id z5A0iNglBpst for ; Wed, 14 Jun 2023 10:34:45 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4QgqJP2FFCzBJCMY; Wed, 14 Jun 2023 10:34:45 +0800 (CST) MIME-Version: 1.0 Date: Wed, 14 Jun 2023 10:34:45 +0800 From: baomingtong001@208suo.com To: mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, pbonzini@redhat.com, paulus@ozlabs.org, seanjc@google.com, thuth@redhat.com Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] KVM: PPC: remove unneeded variable In-Reply-To: <20230614023206.3865-1-luojianhong@cdjrlc.com> References: <20230614023206.3865-1-luojianhong@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: X-Sender: baomingtong001@208suo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RDNS_NONE,SPF_HELO_FAIL,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix the following coccicheck warning: arch/powerpc/kvm/book3s_pr.c:424:5-6: Unneeded variable: "r". Signed-off-by: Mingtong Bao --- arch/powerpc/kvm/book3s_pr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kvm/book3s_pr.c b/arch/powerpc/kvm/book3s_pr.c index 9118242063fb..d03b31b240d7 100644 --- a/arch/powerpc/kvm/book3s_pr.c +++ b/arch/powerpc/kvm/book3s_pr.c @@ -421,14 +421,14 @@ void kvmppc_restore_tm_pr(struct kvm_vcpu *vcpu) static int kvmppc_core_check_requests_pr(struct kvm_vcpu *vcpu) { - int r = 1; /* Indicate we want to get back into the guest */ + /* Indicate we want to get back into the guest */ /* We misuse TLB_FLUSH to indicate that we want to clear all shadow cache entries */ if (kvm_check_request(KVM_REQ_TLB_FLUSH, vcpu)) kvmppc_mmu_pte_flush(vcpu, 0, 0); - return r; + return 1; } /************* MMU Notifiers *************/