diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-06-24 16:52:04 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 06:51:40 -0400 |
commit | 2b6addad2d67a2d75ae10a1c8efd18d81d78ff82 (patch) | |
tree | 8d314f6fc12bc04788ef27de8cb9269600a40489 /arch/x86/kernel/nmi.c | |
parent | 116f570e5d8347bee2614da2361eeadbb639ea50 (diff) |
x86: nmi_watchdog - remove useless check
Since nmi_watchdog is unsigned variable we may
safely remove the check for negative value.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: macro@linux-mips.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/nmi.c')
-rw-r--r-- | arch/x86/kernel/nmi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/nmi.c b/arch/x86/kernel/nmi.c index 9ebf71323c9a..427c511e7adc 100644 --- a/arch/x86/kernel/nmi.c +++ b/arch/x86/kernel/nmi.c | |||
@@ -187,7 +187,7 @@ error: | |||
187 | 187 | ||
188 | static int __init setup_nmi_watchdog(char *str) | 188 | static int __init setup_nmi_watchdog(char *str) |
189 | { | 189 | { |
190 | int nmi; | 190 | unsigned int nmi; |
191 | 191 | ||
192 | if (!strncmp(str, "panic", 5)) { | 192 | if (!strncmp(str, "panic", 5)) { |
193 | panic_on_timeout = 1; | 193 | panic_on_timeout = 1; |
@@ -199,7 +199,7 @@ static int __init setup_nmi_watchdog(char *str) | |||
199 | 199 | ||
200 | get_option(&str, &nmi); | 200 | get_option(&str, &nmi); |
201 | 201 | ||
202 | if (nmi >= NMI_INVALID || nmi < NMI_NONE) | 202 | if (nmi >= NMI_INVALID) |
203 | return 0; | 203 | return 0; |
204 | 204 | ||
205 | nmi_watchdog = nmi; | 205 | nmi_watchdog = nmi; |