]> Gentwo Git Trees - linux/.git/commit
objtool: Remove error handling boilerplate
authorJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 17 Sep 2025 16:03:24 +0000 (09:03 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 14 Oct 2025 21:45:23 +0000 (14:45 -0700)
commit4ac2ba35f62d330dfb2f3148cc7405a6ce5dfa2d
treea458da5123acbe1fae7fde2589f096b0f110935e
parent2bb23cbf3f21919ba17cf63404ec0224bd8bf4fb
objtool: Remove error handling boilerplate

Up to a certain point in objtool's execution, all errors are fatal and
return -1.  When propagating such errors, just return -1 directly
instead of trying to propagate the original return code.  This helps
make the code more compact and the behavior more explicit.

Acked-by: Petr Mladek <pmladek@suse.com>
Tested-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/check.c
tools/objtool/special.c