]> Gentwo Git Trees - linux/.git/commit
x86/alternative: Drop not needed test after call of alt_replace_call()
authorJuergen Gross <jgross@suse.com>
Mon, 29 Sep 2025 11:29:45 +0000 (13:29 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 14 Oct 2025 08:38:11 +0000 (10:38 +0200)
commitad74016b919cbad78d203fa1c459ae18e73ce586
tree01398cabf3da7046b936d3abd87078fa5ececbc0
parent3a8660878839faadb4f1a6dd72c3179c1df56787
x86/alternative: Drop not needed test after call of alt_replace_call()

alt_replace_call() will never return a negative value, so testing the
return value to be less than zero can be dropped.

This makes it possible to switch the return type of alt_replace_call()
and the type of insn_buff_sz to unsigned int.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
arch/x86/kernel/alternative.c