diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-01-09 04:19:59 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-01-09 04:19:59 +0300 |
commit | f73857ece4d85d2ee36571df9c13a733f3ba2732 (patch) | |
tree | c1cf6264a4415b4a4a9b6b18efe78040609990f5 /arch/x86/boot/string.c | |
parent | 106b88d7a91e2b4d40369a20b8ef07bb827dafd5 (diff) | |
parent | 257ca14f4d780e27a0605fd68053d2cc3178a232 (diff) | |
download | linux-f73857ece4d85d2ee36571df9c13a733f3ba2732.tar.xz |
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.c | 2 |
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; |