]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: nmi_watchdog - remove useless check
authorCyrill Gorcunov <gorcunov@gmail.com>
Tue, 24 Jun 2008 20:52:04 +0000 (22:52 +0200)
committerIngo Molnar <mingo@elte.hu>
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 <gorcunov@gmail.com>
Cc: macro@linux-mips.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/nmi.c

index 9ebf71323c9a4c49b503df13846de2a8e812c7cb..427c511e7adc0b491e4246cf41b6f928b515955f 100644 (file)
@@ -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;