]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: !x & y typo in mtrr code
authorHarvey Harrison <harvey.harrison@gmail.com>
Sun, 27 Apr 2008 04:00:17 +0000 (21:00 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 29 Apr 2008 11:45:24 +0000 (13:45 +0200)
As written, this can never be true.

Spotted by the Sparse checker.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/mtrr/generic.c

index 353efe4f5017aeaf8c75abcf97639dd8b07dc2d1..5d241ce94a44f4f5b0fceb7a7a8292e08b6d9b08 100644 (file)
@@ -90,7 +90,7 @@ u8 mtrr_type_lookup(u64 start, u64 end)
         * Look of multiple ranges matching this address and pick type
         * as per MTRR precedence
         */
-       if (!mtrr_state.enabled & 2) {
+       if (!(mtrr_state.enabled & 2)) {
                return mtrr_state.def_type;
        }