mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 01:31:18 -04:00
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> Cc: macro@linux-mips.org Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
116f570e5d
commit
2b6addad2d
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user