summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Chaignon <paul.chaignon@orange.com>2019-12-16 14:27:33 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2019-12-16 16:18:48 +0300
commit159ecc002b5f55f9c58de533551a2ee552861185 (patch)
tree8b7bbbb5764c570fe18d994638fca827b51cd67e
parenta79ac2d1036a824abba982c33e938b717d1b659f (diff)
downloadlinux-159ecc002b5f55f9c58de533551a2ee552861185.tar.xz
bpftool: Fix compilation warning on shadowed variable
The ident variable has already been declared at the top of the function and doesn't need to be re-declared. Fixes: 985ead416df39 ("bpftool: Add skeleton codegen command") Signed-off-by: Paul Chaignon <paul.chaignon@orange.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20191216112733.GA28366@Omicron
-rw-r--r--tools/bpf/bpftool/gen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bpf/bpftool/gen.c b/tools/bpf/bpftool/gen.c
index a07c80429c7a..f70088b4c19b 100644
--- a/tools/bpf/bpftool/gen.c
+++ b/tools/bpf/bpftool/gen.c
@@ -388,7 +388,7 @@ static int do_skeleton(int argc, char **argv)
);
i = 0;
bpf_object__for_each_map(map, obj) {
- const char *ident = get_map_ident(map);
+ ident = get_map_ident(map);
if (!ident)
continue;