提交 2b6addad 编写于 作者: C Cyrill Gorcunov 提交者: Ingo Molnar

x86: nmi_watchdog - remove useless check

Since nmi_watchdog is unsigned variable we may
safely remove the check for negative value.
Signed-off-by: NCyrill Gorcunov <gorcunov@gmail.com>
Cc: macro@linux-mips.org
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 116f570e
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册