summaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2017-07-25 11:09:56 +0200
committerBorislav Petkov <bp@suse.de>2017-08-21 17:59:38 +0200
commit398443471f1698003832972637d5508a0c0809e0 (patch)
treeadc3dbac78d6cc1c1b1eae0f8d870e95608e54d9 /drivers/edac
parentf3c0891c2feafa008cc35d6ffb8cf593df66c867 (diff)
downloadlinux-398443471f1698003832972637d5508a0c0809e0.tar.bz2
EDAC, mce_amd: Get rid of local var in amd_filter_mce()
... and use the macro for that. No functionality change. Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/mce_amd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c
index c0ae47a5c7b7..a11a671c7a38 100644
--- 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;