diff --git a/arch/x86/kernel/nmi.c b/arch/x86/kernel/nmi.c index 9ebf71323c9a4c49b503df13846de2a8e812c7cb..427c511e7adc0b491e4246cf41b6f928b515955f 100644 --- a/arch/x86/kernel/nmi.c +++ b/arch/x86/kernel/nmi.c @@ -187,7 +187,7 @@ int __init check_nmi_watchdog(void) 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;