Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b6addad authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Ingo Molnar
Browse files

x86: nmi_watchdog - remove useless check



Since nmi_watchdog is unsigned variable we may
safely remove the check for negative value.

Signed-off-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
Cc: macro@linux-mips.org
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 116f570e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;