From 0b5eadc54f3890db6b5bba10d42c70616714bee8 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 24 Aug 2017 15:02:58 -0700 Subject: [PATCH] bpf: drop unused parameter to bpf_report_map_in_map Signed-off-by: Stephen Hemminger --- lib/bpf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bpf.c b/lib/bpf.c index 1dcb261dc..09551990d 100644 --- a/lib/bpf.c +++ b/lib/bpf.c @@ -1516,7 +1516,7 @@ static int bpf_find_map_id(const struct bpf_elf_ctx *ctx, uint32_t id) return -ENOENT; } -static void bpf_report_map_in_map(int outer_fd, int inner_fd, uint32_t idx) +static void bpf_report_map_in_map(int outer_fd, uint32_t idx) { struct bpf_elf_map outer_map; int ret; @@ -1683,7 +1683,7 @@ static int bpf_maps_attach_all(struct bpf_elf_ctx *ctx) &inner_fd, BPF_ANY); if (ret < 0) { bpf_report_map_in_map(ctx->map_fds[j], - inner_fd, inner_idx); + inner_idx); return ret; } } -- 2.47.2