summaryrefslogtreecommitdiffstats
path: root/tools/bpf
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2020-06-12 22:16:03 +0200
committerAlexei Starovoitov <ast@kernel.org>2020-06-13 00:25:04 +0200
commit22eb78792e07a4dfb63c85f34950d4e58eb90326 (patch)
tree07d8d66b127127df8ced2287e57b05bb2d6b8f93 /tools/bpf
parentbpf: Fix memlock accounting for sock_hash (diff)
downloadlinux-22eb78792e07a4dfb63c85f34950d4e58eb90326.tar.xz
linux-22eb78792e07a4dfb63c85f34950d4e58eb90326.zip
tools/bpftool: Fix skeleton codegen
Remove unnecessary check at the end of codegen() routine which makes codegen() to always fail and exit bpftool with error code. Positive value of variable n is not an indicator of a failure. Fixes: 2c4779eff837 ("tools, bpftool: Exit on error in function codegen") Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Reviewed-by: Tobias Klauser <tklauser@distanz.ch> Link: https://lore.kernel.org/bpf/20200612201603.680852-1-andriin@fb.com
Diffstat (limited to 'tools/bpf')
-rw-r--r--tools/bpf/bpftool/gen.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/bpf/bpftool/gen.c b/tools/bpf/bpftool/gen.c
index 7443879e87af..10de76b296ba 100644
--- a/tools/bpf/bpftool/gen.c
+++ b/tools/bpf/bpftool/gen.c
@@ -257,8 +257,6 @@ static void codegen(const char *template, ...)
va_end(args);
free(s);
- if (n)
- exit(-1);
}
static int do_skeleton(int argc, char **argv)