diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-25 01:48:43 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-12-25 15:46:06 -0500 |
commit | 71ab6b245fda6e7597a667a67cce0d26c3c7a14b (patch) | |
tree | 72d82ae0af85636fdfc6614bad5affb4e3757b9c /arch/x86/kernel/cpu/mtrr | |
parent | 34945ede31071ac7d72270cc6c1893323f392b3f (diff) |
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: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/cpu/mtrr')
-rw-r--r-- | arch/x86/kernel/cpu/mtrr/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/x86/kernel/cpu/mtrr/main.c b/arch/x86/kernel/cpu/mtrr/main.c index c78c04821ea1..acd9ac54d47f 100644 --- a/arch/x86/kernel/cpu/mtrr/main.c +++ b/arch/x86/kernel/cpu/mtrr/main.c | |||
@@ -823,16 +823,14 @@ static int enable_mtrr_cleanup __initdata = | |||
823 | 823 | ||
824 | static int __init disable_mtrr_cleanup_setup(char *str) | 824 | static int __init disable_mtrr_cleanup_setup(char *str) |
825 | { | 825 | { |
826 | if (enable_mtrr_cleanup != -1) | 826 | enable_mtrr_cleanup = 0; |
827 | enable_mtrr_cleanup = 0; | ||
828 | return 0; | 827 | return 0; |
829 | } | 828 | } |
830 | early_param("disable_mtrr_cleanup", disable_mtrr_cleanup_setup); | 829 | early_param("disable_mtrr_cleanup", disable_mtrr_cleanup_setup); |
831 | 830 | ||
832 | static int __init enable_mtrr_cleanup_setup(char *str) | 831 | static int __init enable_mtrr_cleanup_setup(char *str) |
833 | { | 832 | { |
834 | if (enable_mtrr_cleanup != -1) | 833 | enable_mtrr_cleanup = 1; |
835 | enable_mtrr_cleanup = 1; | ||
836 | return 0; | 834 | return 0; |
837 | } | 835 | } |
838 | early_param("enable_mtrr_cleanup", enable_mtrr_cleanup_setup); | 836 | early_param("enable_mtrr_cleanup", enable_mtrr_cleanup_setup); |