Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2307535rwd; Wed, 14 Jun 2023 00:34:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ56S87mTKXPug0bmgFcRISqqZpC720DXlMRgjVYfdgSHVayTC7B8AclL7DnWZASyqmmdCWq X-Received: by 2002:a05:620a:2b99:b0:75d:50bb:b181 with SMTP id dz25-20020a05620a2b9900b0075d50bbb181mr13806308qkb.44.1686728052364; Wed, 14 Jun 2023 00:34:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686728052; cv=none; d=google.com; s=arc-20160816; b=kauSGrTNIj/POU6VZkZf9ov9k3gvV2kwchPc5DIVPIm9+UVcICqJJNorutZDpnT1hi +9Iz1pRFKir02c3bsiXXtAkTAONfzwfWY59HVKD2MIYMy3XsfRit59VVoWfJgmB5amUX OuUOYDl3sDz0AHwm0EKrynYWn14C3mrTWbzyYru1CnNLF6LxrWvDiurWzfOc2zKf2fi9 0DJrdanV2a2yjaE6mRzp8UsMMvZuUZFHtOiZay+e11UC6yT8X/oDfnOLltF/EPgjLjT1 AvjHVy4zhj9LQ4Db+/k3lIkAbJAagoLk0pwLPMXH2PwialKm4KF3PsX790xIS/j1RaY1 D6cw== 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=iKzHJvoITDOQ3PfNmsnkWVte/d4Nwblf4UzfPf62RjM=; b=qLUETM837uQi1Y8wvXJtvgi5iZ2AdolRJIYM6uboD4iJQRG5Hk785K2cBnfEcY0CTS c4RZZZ1skfuu3KtbuilIB2D8Q5i1JXE8K7SFZjtbo6dvUcOI+F+KBwauJ6qeH4Zy3KET 48vyJ3CbTTEExr21oCnjL5+KEESwIQDDbnt3w3SguSiYHw0MjC6Z7bHytucRS8poSvPU YobzwlI9oZWVVoAIcXrNWFLk0s9oScBEjk/wC4fiT1n+V/QpQ0ryS2UK6R7QDNluZaFl h4IYb6J7WupjstP3owAPJLB1WbH0rTF1qiHAyRKmDVDXBeYbzPcY4T88GmmOPZWw1teH zfcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=AB1SzX7l; 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 n1-20020aa79841000000b0063b7b7712a5si10121934pfq.304.2023.06.14.00.33.59; Wed, 14 Jun 2023 00:34:12 -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=AB1SzX7l; 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 S235223AbjFNHMt (ORCPT + 99 others); Wed, 14 Jun 2023 03:12:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235249AbjFNHMr (ORCPT ); Wed, 14 Jun 2023 03:12:47 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD2C319B6 for ; Wed, 14 Jun 2023 00:12:45 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4QgxT72xcdzBQJYd for ; Wed, 14 Jun 2023 15:12:43 +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=1686726763; x=1689318764; bh=c7RaFsDa5kAGNhcFOSGO7z6+FkC thRmwJp7Hw4Z60gs=; b=AB1SzX7lR5CKs5uEHH8+G0KuN2jcD7M89WKDMBX6fSC iiFhJLoWldyy7H6+TJn2fVidX4EYoSCzVaTRSIz+NOJkDghePBzOpbHgsRO+kkiA EZmJnul1e/MWaBnGynFrSyvTyYq63eAYhfRg5oFzzdWSN0ELP4V6HE7yO15tvcze hlCtOfiSpXYGHeJX4yofzl5m21aAsAHuCMYxj/z1FeVO2S1Yu2zMWbRQ6Ve4MS32 BUpYcDj2/oT6ogMREifncICyQuj8SmliRVbrfUbAvdPszw0Y6mJVto40gkfNo0OZ 7TCd6ApbJcSXgfhJNNOIYGkuYDqqn01aRUl3b92gDBQ== 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 LMGfdVRyvI26 for ; Wed, 14 Jun 2023 15:12:43 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4QgxT70W8GzBJLB3; Wed, 14 Jun 2023 15:12:43 +0800 (CST) MIME-Version: 1.0 Date: Wed, 14 Jun 2023 15:12:42 +0800 From: wuyonggang001@208suo.com To: shuah@kernel.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests/powerpc: Remove unneeded variable In-Reply-To: <20230614070926.36395-1-zhanglibing@cdjrlc.com> References: <20230614070926.36395-1-zhanglibing@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: <553bb6053c7b7bee60eda3ca90470ac3@208suo.com> X-Sender: wuyonggang001@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: tools/testing/selftests/powerpc/alignment/alignment_handler.c:558:5-7: Unneeded variable: "rc". Return "0" Signed-off-by: Yonggang Wu --- .../powerpc/alignment/alignment_handler.c | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tools/testing/selftests/powerpc/alignment/alignment_handler.c b/tools/testing/selftests/powerpc/alignment/alignment_handler.c index 33ee34fc0828..4980656c3f70 100644 --- a/tools/testing/selftests/powerpc/alignment/alignment_handler.c +++ b/tools/testing/selftests/powerpc/alignment/alignment_handler.c @@ -332,7 +332,7 @@ int test_alignment_handler_vsx_206(void) STORE_VSX_XFORM_TEST(stxvd2x); STORE_VSX_XFORM_TEST(stxvw4x); STORE_VSX_XFORM_TEST(stxsdx); - return rc; + return 0; } int test_alignment_handler_vsx_207(void) @@ -348,7 +348,7 @@ int test_alignment_handler_vsx_207(void) LOAD_VSX_XFORM_TEST(lxsiwzx); STORE_VSX_XFORM_TEST(stxsspx); STORE_VSX_XFORM_TEST(stxsiwx); - return rc; + return 0; } int test_alignment_handler_vsx_300(void) @@ -380,7 +380,7 @@ int test_alignment_handler_vsx_300(void) STORE_VSX_XFORM_TEST(stxvx); STORE_VSX_XFORM_TEST(stxvl); STORE_VSX_XFORM_TEST(stxvll); - return rc; + return 0; } int test_alignment_handler_vsx_prefix(void) @@ -399,7 +399,7 @@ int test_alignment_handler_vsx_prefix(void) STORE_VSX_8LS_PREFIX_TEST(PSTXSSP, 0); STORE_VSX_8LS_PREFIX_TEST(PSTXV0, 0); STORE_VSX_8LS_PREFIX_TEST(PSTXV1, 1); - return rc; + return 0; } int test_alignment_handler_integer(void) @@ -458,7 +458,7 @@ int test_alignment_handler_integer(void) STORE_DFORM_TEST(stmw); #endif - return rc; + return 0; } int test_alignment_handler_integer_206(void) @@ -473,7 +473,7 @@ int test_alignment_handler_integer_206(void) LOAD_XFORM_TEST(ldbrx); STORE_XFORM_TEST(stdbrx); - return rc; + return 0; } int test_alignment_handler_integer_prefix(void) @@ -494,7 +494,7 @@ int test_alignment_handler_integer_prefix(void) STORE_MLS_PREFIX_TEST(PSTH); STORE_MLS_PREFIX_TEST(PSTW); STORE_8LS_PREFIX_TEST(PSTD); - return rc; + return 0; } int test_alignment_handler_vmx(void) @@ -522,7 +522,7 @@ int test_alignment_handler_vmx(void) STORE_VMX_XFORM_TEST(stvehx); STORE_VMX_XFORM_TEST(stvewx); STORE_VMX_XFORM_TEST(stvxl); - return rc; + return 0; } int test_alignment_handler_fp(void) @@ -550,7 +550,7 @@ int test_alignment_handler_fp(void) STORE_FLOAT_XFORM_TEST(stfsux); STORE_FLOAT_XFORM_TEST(stfiwx); - return rc; + return 0; } int test_alignment_handler_fp_205(void) @@ -568,7 +568,7 @@ int test_alignment_handler_fp_205(void) STORE_FLOAT_DFORM_TEST(stfdp); STORE_FLOAT_XFORM_TEST(stfdpx); - return rc; + return 0; } int test_alignment_handler_fp_206(void) @@ -582,7 +582,7 @@ int test_alignment_handler_fp_206(void) LOAD_FLOAT_XFORM_TEST(lfiwzx); - return rc; + return 0; } @@ -599,7 +599,7 @@ int test_alignment_handler_fp_prefix(void) LOAD_FLOAT_MLS_PREFIX_TEST(PLFD); STORE_FLOAT_MLS_PREFIX_TEST(PSTFS); STORE_FLOAT_MLS_PREFIX_TEST(PSTFD); - return rc; + return 0; } void usage(char *prog)