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)
commit159ecc002b5f55f9c58de533551a2ee552861185
tree8b7bbbb5764c570fe18d994638fca827b51cd67e
parenta79ac2d1036a824abba982c33e938b717d1b659f
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
tools/bpf/bpftool/gen.c