projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3c0891
)
EDAC, mce_amd: Get rid of local var in amd_filter_mce()
author
Borislav Petkov
<bp@suse.de>
Tue, 25 Jul 2017 09:09:56 +0000
(11:09 +0200)
committer
Borislav Petkov
<bp@suse.de>
Mon, 21 Aug 2017 15:59:38 +0000
(17:59 +0200)
... and use the macro for that.
No functionality change.
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/mce_amd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/edac/mce_amd.c
b/drivers/edac/mce_amd.c
index c0ae47a5c7b7086637091ca9ac50664be3fa486d..a11a671c7a3866cb416d20eb4f302968028d7080 100644
(file)
--- a/
drivers/edac/mce_amd.c
+++ b/
drivers/edac/mce_amd.c
@@
-913,12
+913,10
@@
static inline void amd_decode_err_code(u16 ec)
*/
static bool amd_filter_mce(struct mce *m)
{
- u8 xec = (m->status >> 16) & 0x1f;
-
/*
* NB GART TLB error reporting is disabled by default.
*/
- if (m->bank == 4 &&
xec
== 0x5 && !report_gart_errors)
+ if (m->bank == 4 &&
XEC(m->status, 0x1f)
== 0x5 && !report_gart_errors)
return true;
return false;