1
0
Fork 0

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: 2c4779eff8 ("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
alistair/sunxi64-5.8
Andrii Nakryiko 2020-06-12 13:16:03 -07:00 committed by Alexei Starovoitov
parent 60e5ca8a64
commit 22eb78792e
1 changed files with 0 additions and 2 deletions

View File

@ -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)