Re: [PATCH bpf-next] bpf: Remove set but not used variable 'first_key'

From: Alexei Starovoitov
Date: Thu Jan 16 2020 - 23:19:48 EST


On Thu, Jan 16, 2020 at 5:41 PM Brian Vazquez <brianvv@xxxxxxxxxx> wrote:
>
> On Thu, Jan 16, 2020 at 5:38 PM YueHaibing <yuehaibing@xxxxxxxxxx> wrote:
> >
> > kernel/bpf/syscall.c: In function generic_map_lookup_batch:
> > kernel/bpf/syscall.c:1339:7: warning: variable first_key set but not used [-Wunused-but-set-variable]
> >
> > It is never used, so remove it.
>
> Previous logic was using it but I forgot to delete it. Thanks for fixing it!
>
> Acked-by: Brian Vazquez <brianvv@xxxxxxxxxx>

Applied. Thanks