projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a01e035
)
x86: !x & y typo in mtrr code
author
Harvey Harrison
<harvey.harrison@gmail.com>
Sun, 27 Apr 2008 04:00:17 +0000
(21:00 -0700)
committer
Ingo 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
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/mtrr/generic.c
b/arch/x86/kernel/cpu/mtrr/generic.c
index 353efe4f5017aeaf8c75abcf97639dd8b07dc2d1..5d241ce94a44f4f5b0fceb7a7a8292e08b6d9b08 100644
(file)
--- a/
arch/x86/kernel/cpu/mtrr/generic.c
+++ b/
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;
}