projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a79ac2d
)
bpftool: Fix compilation warning on shadowed variable
author
Paul Chaignon
<paul.chaignon@orange.com>
Mon, 16 Dec 2019 11:27:33 +0000
(12:27 +0100)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Mon, 16 Dec 2019 13:18:48 +0000
(14:18 +0100)
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
tools/bpf/bpftool/gen.c
patch
|
blob
|
history
diff --git
a/tools/bpf/bpftool/gen.c
b/tools/bpf/bpftool/gen.c
index
a07c804
..
f70088b
100644
(file)
--- 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;