aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorXin Li (Intel) <[email protected]>2024-02-01 01:46:04 -0800
committerThomas Gleixner <[email protected]>2024-02-27 22:00:50 +0100
commit47403a4b49767f1d533e4dc5f5cf5cc957f22a5e (patch)
tree81701795c6a6742162bcb18c23fca6bcc8c81d1c /lib/test_fortify/write_overflow-strncpy-src.c
parente37ae6433a5eeb5fb66e3de4b97cdda68ee2c5e8 (diff)
x86/nmi: Remove an unnecessary IS_ENABLED(CONFIG_SMP)
IS_ENABLED(CONFIG_SMP) is unnecessary here: smp_processor_id() should always return zero on UP, and arch_cpu_is_offline() reduces to !(cpu == 0), so this is a statically false condition on UP. Suggested-by: H. Peter Anvin (Intel) <[email protected]> Signed-off-by: Xin Li (Intel) <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions