Messages in this thread Patch in this message | | | Date | Thu, 01 Jan 1970 03:00:03 +0300 | From | Cyrill Gorcunov <> | Subject | [patch 3/5] 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> ---
Index: linux-2.6.git/arch/x86/kernel/nmi.c ==================================================================== --- linux-2.6.git.orig/arch/x86/kernel/nmi.c 2008-06-22 23:02:50.000000000 +0400 +++ linux-2.6.git/arch/x86/kernel/nmi.c 2008-06-23 20:02:47.000000000 +0400 @@ -186,7 +186,7 @@ error: static int __init setup_nmi_watchdog(char *str) { - int nmi; + unsigned int nmi; if (!strncmp(str, "panic", 5)) { panic_on_timeout = 1; @@ -198,7 +198,7 @@ static int __init setup_nmi_watchdog(cha get_option(&str, &nmi); - if (nmi >= NMI_INVALID || nmi < NMI_NONE) + if (nmi >= NMI_INVALID) return 0; nmi_watchdog = nmi; --
| |