]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
bpf: drop unused parameter to bpf_report_map_in_map
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 24 Aug 2017 22:02:58 +0000 (15:02 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 24 Aug 2017 22:02:58 +0000 (15:02 -0700)
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/bpf.c

index 1dcb261dc915ff9d7446a5e0385a2648b0545e8c..09551990dd707b9526776b8ab5447b799ba92022 100644 (file)
--- 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;
                        }
                }