提交 e686d341 编写于 作者: H Harvey Harrison 提交者: Ingo Molnar

x86: !x & y typo in mtrr code

As written, this can never be true.

Spotted by the Sparse checker.
Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册