amd64_edac: fix ecc_enable_override handling
authorBorislav Petkov <borislav.petkov@amd.com>
Mon, 22 Jun 2009 17:42:24 +0000 (19:42 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Fri, 26 Jun 2009 11:06:41 +0000 (13:06 +0200)
commit30c875cbc1836a03a1acc6c998fa8a04f29f8f73
tree311168363af0e39dfd81d5150d18f1aa2d32df68
parent584fcff428bde3b9985ba21498764e9dba2fd3ce
amd64_edac: fix ecc_enable_override handling

amd64_check_ecc_enabled() returns non-zero status when ECC
checking/correcting is disabled and this fails further loading of the
driver even when 'ecc_enable_override' boot param is used.

Fix that by clearing return status in that case.

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