aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/bpf/xskmap.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-06-04 09:21:46 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2019-06-04 16:57:07 +0200
commit6685699e4ef5e9903d5c8bc6c2e6e13b931c98e1 (patch)
tree129b1413490cbe8e16dc29703b25d4af0f8d31da /kernel/bpf/xskmap.c
parentbpf: hbm: fix spelling mistake "notifcations" -> "notificiations" (diff)
downloadlinux-dev-6685699e4ef5e9903d5c8bc6c2e6e13b931c98e1.tar.xz
linux-dev-6685699e4ef5e9903d5c8bc6c2e6e13b931c98e1.zip
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>
Diffstat (limited to '')
-rw-r--r--kernel/bpf/xskmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/xskmap.c b/kernel/bpf/xskmap.c
index 22066c28ba61..413d75f4fc72 100644
--- a/kernel/bpf/xskmap.c
+++ b/kernel/bpf/xskmap.c
@@ -17,8 +17,8 @@ struct xsk_map {
static struct bpf_map *xsk_map_alloc(union bpf_attr *attr)
{
- int cpu, err = -EINVAL;
struct xsk_map *m;
+ int cpu, err;
u64 cost;
if (!capable(CAP_NET_ADMIN))