Commit 71ab6b24 authored by Rusty Russell's avatar Rusty Russell Committed by H. Peter Anvin

x86: remove impossible test in mtrr/main.c

Impact: cleanup

enable_mtrr_cleanup is static, and is never set to anything but 0 or 1.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 34945ede
...@@ -823,7 +823,6 @@ static int enable_mtrr_cleanup __initdata = ...@@ -823,7 +823,6 @@ static int enable_mtrr_cleanup __initdata =
static int __init disable_mtrr_cleanup_setup(char *str) static int __init disable_mtrr_cleanup_setup(char *str)
{ {
if (enable_mtrr_cleanup != -1)
enable_mtrr_cleanup = 0; enable_mtrr_cleanup = 0;
return 0; return 0;
} }
...@@ -831,7 +830,6 @@ early_param("disable_mtrr_cleanup", disable_mtrr_cleanup_setup); ...@@ -831,7 +830,6 @@ early_param("disable_mtrr_cleanup", disable_mtrr_cleanup_setup);
static int __init enable_mtrr_cleanup_setup(char *str) static int __init enable_mtrr_cleanup_setup(char *str)
{ {
if (enable_mtrr_cleanup != -1)
enable_mtrr_cleanup = 1; enable_mtrr_cleanup = 1;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment