]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: remove impossible test in mtrr/main.c
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 25 Dec 2008 06:48:43 +0000 (17:18 +1030)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 25 Dec 2008 20:46:06 +0000 (12:46 -0800)
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>
arch/x86/kernel/cpu/mtrr/main.c

index c78c04821ea18a58266b812fef480aa0b5ec0fbb..acd9ac54d47fc753bd260a797ca3dbb8bf39995d 100644 (file)
@@ -823,16 +823,14 @@ static int enable_mtrr_cleanup __initdata =
 
 static int __init disable_mtrr_cleanup_setup(char *str)
 {
-       if (enable_mtrr_cleanup != -1)
-               enable_mtrr_cleanup = 0;
+       enable_mtrr_cleanup = 0;
        return 0;
 }
 early_param("disable_mtrr_cleanup", disable_mtrr_cleanup_setup);
 
 static int __init enable_mtrr_cleanup_setup(char *str)
 {
-       if (enable_mtrr_cleanup != -1)
-               enable_mtrr_cleanup = 1;
+       enable_mtrr_cleanup = 1;
        return 0;
 }
 early_param("enable_mtrr_cleanup", enable_mtrr_cleanup_setup);