]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/alternatives: Simplify text_poke_addr_ordered()
authorIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 05:40:53 +0000 (07:40 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 09:01:34 +0000 (11:01 +0200)
commit0e67e587e2e07be8d6775a1444e679c6afbc87f4
treec4e68e48ae56ce9a16e67b6fe6f0f9e2b8b8fc20
parent6e4955a9d73ebdc8496e6bff7f6d2bf83c01959f
x86/alternatives: Simplify text_poke_addr_ordered()

 - Use direct 'void *' pointer comparison, there's no
   need to force the type to 'unsigned long'.

 - Remove the 'tp' local variable indirection

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Juergen Gross <jgross@suse.com>
Cc: "H . Peter Anvin" <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250411054105.2341982-42-mingo@kernel.org
arch/x86/kernel/alternative.c