]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita457f49536d7e3b2964b3f8c237296debb6b33b5
treea2c3e4e52fd06dc0be4eafed681aad06fbc27f81
parentc2edd1e2db955ad5b14dc8c06be5f9458e505201
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