[3/5] x86: nmi_watchdog - remove useless check
diff mbox series

Message ID 48611ec1.2234440a.679b.1a7c@mx.google.com
State New, archived
Headers show
Series
  • [1/5] x86: perfctr-watchdog.c - coding style cleanup
Related show

Commit Message

Cyrill Gorcunov Jan. 1, 1970, midnight UTC
Since nmi_watchdog is unsigned variable we may
safely remove the check for negative value

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---

Patch
diff mbox series

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;