From: Cyrill Gorcunov Date: Tue, 24 Jun 2008 20:52:04 +0000 (+0200) Subject: x86: nmi_watchdog - remove useless check X-Git-Tag: v2.6.27-rc1~1106^2~189 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2b6addad2d67a2d75ae10a1c8efd18d81d78ff82;p=linux-2.6-omap-h63xx.git 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 Cc: macro@linux-mips.org Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/nmi.c b/arch/x86/kernel/nmi.c index 9ebf71323c9..427c511e7ad 100644 --- 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;