projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
116f570
)
x86: nmi_watchdog - remove useless check
author
Cyrill Gorcunov
<
[email protected]
>
Tue, 24 Jun 2008 20:52:04 +0000
(22:52 +0200)
committer
Ingo Molnar
<
[email protected]
>
Tue, 8 Jul 2008 10:51:40 +0000
(12:51 +0200)
Since nmi_watchdog is unsigned variable we may
safely remove the check for negative value.
Signed-off-by: Cyrill Gorcunov <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/kernel/nmi.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/nmi.c
b/arch/x86/kernel/nmi.c
index 9ebf71323c9a4c49b503df13846de2a8e812c7cb..427c511e7adc0b491e4246cf41b6f928b515955f 100644
(file)
--- a/
arch/x86/kernel/nmi.c
+++ b/
arch/x86/kernel/nmi.c
@@
-187,7
+187,7
@@
error:
static int __init setup_nmi_watchdog(char *str)
{
- int nmi;
+
unsigned
int nmi;
if (!strncmp(str, "panic", 5)) {
panic_on_timeout = 1;
@@
-199,7
+199,7
@@
static int __init setup_nmi_watchdog(char *str)
get_option(&str, &nmi);
- if (nmi >= NMI_INVALID
|| nmi < NMI_NONE
)
+ if (nmi >= NMI_INVALID)
return 0;
nmi_watchdog = nmi;