Skip to content

Commit 22eb787

Browse files
anakryikoAlexei Starovoitov
authored andcommitted
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: 2c4779e ("tools, bpftool: Exit on error in function codegen") Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Reviewed-by: Tobias Klauser <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 60e5ca8 commit 22eb787

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tools/bpf/bpftool/gen.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,6 @@ static void codegen(const char *template, ...)
257257
va_end(args);
258258

259259
free(s);
260-
if (n)
261-
exit(-1);
262260
}
263261

264262
static int do_skeleton(int argc, char **argv)

0 commit comments

Comments
 (0)