EDAC, i5000, i5400: Fix use of MTR_DRAM_WIDTH macro
authorJérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Thu, 9 Mar 2017 01:18:09 +0000 (20:18 -0500)
committerBorislav Petkov <bp@suse.de>
Thu, 9 Mar 2017 08:25:29 +0000 (09:25 +0100)
commite61555c29c28a4a3b6ba6207f4a0883ee236004d
treee0b294ea0f682cf3ca0a68f3c16e353d04f02466
parent4bd035eae255a4f1464dca063885fa415e58c12e
EDAC, i5000, i5400: Fix use of MTR_DRAM_WIDTH macro

The MTR_DRAM_WIDTH macro returns the data width. It is sometimes used
as if it returned a boolean true if the width if 8. Fix the tests where
MTR_DRAM_WIDTH is misused.

Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170309011809.8340-1-jeremy.lefaure@lse.epita.fr
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/i5000_edac.c
drivers/edac/i5400_edac.c