Browse Source

x86: !x & y typo in mtrr code

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>
Harvey Harrison 17 years ago
parent
commit
e686d34156
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/x86/kernel/cpu/mtrr/generic.c

+ 1 - 1
arch/x86/kernel/cpu/mtrr/generic.c

@@ -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;
 	}