Skip to content

Commit

Permalink
x86: nmi_watchdog - remove useless check
Browse files Browse the repository at this point in the history
Since nmi_watchdog is unsigned variable we may
safely remove the check for negative value.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: macro@linux-mips.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Jul 8, 2008
1 parent 116f570 commit 2b6adda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/nmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 2b6adda

Please sign in to comment.