bpf: Remove set but not used variable 'first_key'
authorYueHaibing <yuehaibing@huawei.com>
Thu, 16 Jan 2020 14:53:00 +0000 (22:53 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 17 Jan 2020 04:15:24 +0000 (20:15 -0800)
commit81f2b572cf4fd5c4178fe0e2b5bb1ab096385fd8
treea2c3e4e52fd06dc0be4eafed681aad06fbc27f81
parentba92660362ec42db3baee5af2b47b85d70c1c4be
bpf: Remove set but not used variable 'first_key'

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.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Brian Vazquez <brianvv@google.com>
Link: https://lore.kernel.org/bpf/20200116145300.59056-1-yuehaibing@huawei.com
kernel/bpf/syscall.c