Skip to content

Commit 540fefc

Browse files
author
Alexei Starovoitov
committed
bpf: remove unused variable
fix the following warning ../kernel/bpf/syscall.c: In function ‘map_lookup_and_delete_elem’: ../kernel/bpf/syscall.c:1010:22: warning: unused variable ‘ptr’ [-Wunused-variable] void *key, *value, *ptr; ^~~ Fixes: bd513cd ("bpf: add MAP_LOOKUP_AND_DELETE_ELEM syscall") Signed-off-by: Alexei Starovoitov <ast@kernel.org>
1 parent d375e34 commit 540fefc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/bpf/syscall.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ static int map_lookup_and_delete_elem(union bpf_attr *attr)
10071007
void __user *uvalue = u64_to_user_ptr(attr->value);
10081008
int ufd = attr->map_fd;
10091009
struct bpf_map *map;
1010-
void *key, *value, *ptr;
1010+
void *key, *value;
10111011
u32 value_size;
10121012
struct fd f;
10131013
int err;

0 commit comments

Comments
 (0)