]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
bpf: remove unused variable
authorAlexei Starovoitov <ast@kernel.org>
Fri, 19 Oct 2018 20:52:38 +0000 (13:52 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 19 Oct 2018 20:52:38 +0000 (13:52 -0700)
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: bd513cd08f10 ("bpf: add MAP_LOOKUP_AND_DELETE_ELEM syscall")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/syscall.c

index 49ae64a2656282126f38e6d7518fc94cb035e672..ccb93277aae2c607e7b6ef079e5432d89ef4a1f6 100644 (file)
@@ -1007,7 +1007,7 @@ static int map_lookup_and_delete_elem(union bpf_attr *attr)
        void __user *uvalue = u64_to_user_ptr(attr->value);
        int ufd = attr->map_fd;
        struct bpf_map *map;
-       void *key, *value, *ptr;
+       void *key, *value;
        u32 value_size;
        struct fd f;
        int err;