EDAC, i7300: Test for the second channel properly
authorBorislav Petkov <bp@suse.de>
Wed, 25 Jan 2017 15:08:27 +0000 (16:08 +0100)
committerBorislav Petkov <bp@suse.de>
Thu, 26 Jan 2017 10:35:23 +0000 (11:35 +0100)
commit58fb24cb95562da6e54763463464d168ec5a1caa
tree1c3c0cb2e98a2bb79c6a3a28c3342a26a69b2cd2
parent127c1225bf89764976f80e6a0afb4e26df33c2f2
EDAC, i7300: Test for the second channel properly

REDMEMB[17] is the ECC_Locator bit, which, when set, identifies the
CS[3:2] as the simbols in error. And thus the second channel.

The macro computing it was wrong so get rid of it (it was used at one
place only) and get rid of the conditional too. Generates better code
this way anyway.

Signed-off-by: Borislav Petkov <bp@suse.de>
Reported-by: David Binderman <dcb314@hotmail.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/edac/i7300_edac.c