]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
bpf: remove redundant assignment to err
authorColin Ian King <colin.king@canonical.com>
Tue, 4 Jun 2019 08:21:46 +0000 (09:21 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 4 Jun 2019 14:57:07 +0000 (16:57 +0200)
commit6685699e4ef5e9903d5c8bc6c2e6e13b931c98e1
tree129b1413490cbe8e16dc29703b25d4af0f8d31da
parent2ed99339e92186cbfe1813e732996e19611216c0
bpf: remove redundant assignment to err

The variable err is assigned with the value -EINVAL that is never
read and it is re-assigned a new value later on.  The assignment is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/devmap.c
kernel/bpf/xskmap.c