Commit e686d341 authored by Harvey Harrison's avatar Harvey Harrison Committed by Ingo Molnar

x86: !x & y typo in mtrr code

As written, this can never be true.

Spotted by the Sparse checker.
Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent a01e035e
......@@ -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;
}
......
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