x86/nmi: Clean up NMI selftest
authorSohil Mehta <sohil.mehta@intel.com>
Thu, 27 Mar 2025 23:46:28 +0000 (23:46 +0000)
committerIngo Molnar <mingo@kernel.org>
Tue, 1 Apr 2025 20:26:32 +0000 (22:26 +0200)
commit05279a2863ddba6ed993aad655b9f3e57d9a94ce
tree8280ae192786f4c5459b542773dfb92f63b69dc2
parent7324d7de7740fdbb29c79f5e2a001524370fa732
x86/nmi: Clean up NMI selftest

The expected_testcase_failures variable in the NMI selftest has never
been set since its introduction. Remove this unused variable along with
the related checks to simplify the code.

While at it, replace printk() with the corresponding pr_{cont,info}()
calls. Also, get rid of the superfluous testname wrapper and the
redundant file path comment.

Signed-off-by: Sohil Mehta <sohil.mehta@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Nikolay Borisov <nik.borisov@suse.com>
Link: https://lore.kernel.org/r/20250327234629.3953536-9-sohil.mehta@intel.com
arch/x86/kernel/nmi_selftest.c