Commit 39844347 authored by Borislav Petkov's avatar Borislav Petkov

EDAC, mce_amd: Get rid of local var in amd_filter_mce()

... and use the macro for that.

No functionality change.
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
parent f3c0891c
...@@ -913,12 +913,10 @@ static inline void amd_decode_err_code(u16 ec) ...@@ -913,12 +913,10 @@ static inline void amd_decode_err_code(u16 ec)
*/ */
static bool amd_filter_mce(struct mce *m) static bool amd_filter_mce(struct mce *m)
{ {
u8 xec = (m->status >> 16) & 0x1f;
/* /*
* NB GART TLB error reporting is disabled by default. * 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 true;
return false; return false;
......
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