[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87a5x1fkmj.fsf@mail.lhotse>
Date: Thu, 15 Jun 2023 13:51:48 +1000
From: Michael Ellerman <mpe@...erman.id.au>
To: wuyonggang001@...suo.com, shuah@...nel.org
Cc: linuxppc-dev@...ts.ozlabs.org, linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] selftests/powerpc: Remove unneeded variable
wuyonggang001@...suo.com writes:
> Fix the following coccicheck warning:
>
> tools/testing/selftests/powerpc/alignment/alignment_handler.c:558:5-7:
> Unneeded variable: "rc". Return "0"
The check is wrong.
> 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;
rc is used in the macros.
cheers
Powered by blists - more mailing lists