Quantcast

[patch 3/5] x86: nmi_watchdog - remove useless check

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[patch 3/5] x86: nmi_watchdog - remove useless check

Cyrill Gorcunov-2
Since nmi_watchdog is unsigned variable we may
safely remove the check for negative value

Signed-off-by: Cyrill Gorcunov <[hidden email]>
---

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;

--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Loading...