]> git.baikalelectronics.ru Git - kernel.git/commit
bpftool: Fix compilation warning on shadowed variable
authorPaul Chaignon <paul.chaignon@orange.com>
Mon, 16 Dec 2019 11:27:33 +0000 (12:27 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 16 Dec 2019 13:18:48 +0000 (14:18 +0100)
commit75bb9f765c71c86122ef2303e83c46740e46859c
tree8b7bbbb5764c570fe18d994638fca827b51cd67e
parent6bfca6f40c4f3a072d466c2ec98094849f34cb36
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: 4425552a06500 ("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