[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAADnVQL4a8ceotRpsOH--2fPz_f2tTHedoj6uYm9RC4J=KgiMg@mail.gmail.com>
Date: Tue, 2 Nov 2021 22:52:25 -0700
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: cgel.zte@...il.com
Cc: "David S. Miller" <davem@...emloft.net>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
David Ahern <dsahern@...nel.org>,
Wang YanQing <udknight@...il.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>,
X86 ML <x86@...nel.org>, "H. Peter Anvin" <hpa@...or.com>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Andrii Nakryiko <andrii@...nel.org>,
Martin KaFai Lau <kafai@...com>,
Song Liu <songliubraving@...com>, Yonghong Song <yhs@...com>,
John Fastabend <john.fastabend@...il.com>,
KP Singh <kpsingh@...nel.org>,
Network Development <netdev@...r.kernel.org>,
bpf <bpf@...r.kernel.org>, LKML <linux-kernel@...r.kernel.org>,
Zhang Mingyu <zhang.mingyu@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: Re: [PATCH] bpf, x86:remove unneeded variable
On Tue, Nov 2, 2021 at 10:47 PM <cgel.zte@...il.com> wrote:
>
> From: Zhang Mingyu <zhang.mingyu@....com.cn>
>
> Fix the following coccinelle REVIEW:
> ./arch/x86/net/bpf_jit_comp32.c:1274:5-8
trash that checker and please send patches after you tested them.
> Reported-by: Zeal Robot <zealci@....com.cn>
> Signed-off-by: Zhang Mingyu <zhang.mingyu@....com.cn>
> ---
> arch/x86/net/bpf_jit_comp32.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/arch/x86/net/bpf_jit_comp32.c b/arch/x86/net/bpf_jit_comp32.c
> index da9b7cfa4632..bce7b9b5a653 100644
> --- a/arch/x86/net/bpf_jit_comp32.c
> +++ b/arch/x86/net/bpf_jit_comp32.c
> @@ -1271,7 +1271,6 @@ static void emit_epilogue(u8 **pprog, u32 stack_depth)
> static int emit_jmp_edx(u8 **pprog, u8 *ip)
> {
> u8 *prog = *pprog;
> - int cnt = 0;
>
> #ifdef CONFIG_RETPOLINE
> EMIT1_off32(0xE9, (u8 *)__x86_indirect_thunk_edx - (ip + 5));
> @@ -1280,7 +1279,7 @@ static int emit_jmp_edx(u8 **pprog, u8 *ip)
> #endif
> *pprog = prog;
>
> - return cnt;
> + return 0;
> }
>
> /*
> --
> 2.25.1
>
Powered by blists - more mailing lists