Commit 159ecc00 authored by Paul Chaignon's avatar Paul Chaignon Committed by Daniel Borkmann

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: 985ead41 ("bpftool: Add skeleton codegen command")
Signed-off-by: default avatarPaul Chaignon <paul.chaignon@orange.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20191216112733.GA28366@Omicron
parent a79ac2d1
...@@ -388,7 +388,7 @@ static int do_skeleton(int argc, char **argv) ...@@ -388,7 +388,7 @@ static int do_skeleton(int argc, char **argv)
); );
i = 0; i = 0;
bpf_object__for_each_map(map, obj) { bpf_object__for_each_map(map, obj) {
const char *ident = get_map_ident(map); ident = get_map_ident(map);
if (!ident) if (!ident)
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment