aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/boot/string.c
diff options
context:
space:
mode:
authorLinus Torvalds <[email protected]>2024-01-09 01:19:59 +0000
committerLinus Torvalds <[email protected]>2024-01-09 01:19:59 +0000
commitf73857ece4d85d2ee36571df9c13a733f3ba2732 (patch)
treec1cf6264a4415b4a4a9b6b18efe78040609990f5 /arch/x86/boot/string.c
parentMerge tag 'x86-asm-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff)
parentx86/boot: Remove redundant initialization of the 'delta' variable in strcmp() (diff)
downloadkernel-f73857ece4d85d2ee36571df9c13a733f3ba2732.tar.gz
kernel-f73857ece4d85d2ee36571df9c13a733f3ba2732.zip
Merge tag 'x86-boot-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 boot updates from Ingo Molnar: - Ignore NMIs during very early boot, to address kexec crashes - Remove redundant initialization in boot/string.c's strcmp() * tag 'x86-boot-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/boot: Remove redundant initialization of the 'delta' variable in strcmp() x86/boot: Ignore NMIs during very early boot
Diffstat (limited to 'arch/x86/boot/string.c')
-rw-r--r--arch/x86/boot/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/boot/string.c b/arch/x86/boot/string.c
index 1c8541ae3b3a..c23f3b9c84fe 100644
--- a/arch/x86/boot/string.c
+++ b/arch/x86/boot/string.c
@@ -49,7 +49,7 @@ int strcmp(const char *str1, const char *str2)
{
const unsigned char *s1 = (const unsigned char *)str1;
const unsigned char *s2 = (const unsigned char *)str2;
- int delta = 0;
+ int delta;
while (*s1 || *s2) {
delta = *s1 - *s2;