amd64_edac: cleanup amd64_check_ecc_enabled
commitbe3468e8ff768c986849870b24e85fa84806da73
authorBorislav Petkov <borislav.petkov@amd.com>
Wed, 5 Aug 2009 13:47:22 +0000 (5 15:47 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Wed, 16 Sep 2009 10:40:38 +0000 (16 12:40 +0200)
treed97f18401258dd8f8cdde1486570e360e344f239
parent6a8126911a5ab167783fce18ae9cc70ec9b84fe2
amd64_edac: cleanup amd64_check_ecc_enabled

Simplify code flow and make sure return value is always valid since
further driver init depends on it. Carve out long warning string and
make code more readable. Shorten some names, while at it.

There should be no functional change resulting from this patch.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac.c