amd64_edac: print debug statements only on error

Add forgotten return calls for the successful cases.

Signed-off-by: Doug Thompson <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
This commit is contained in:
Doug Thompson 2009-08-04 12:02:20 +02:00 • committed by Borislav Petkov
commit c2718348b4

View file

@ -868,6 +868,8 @@ static void amd64_read_dbam_reg(struct amd64_pvt *pvt)
goto err_reg;
}
return;
err_reg:
debugf0("Error reading F2x%03x.\n", reg);
}
@ -2634,6 +2636,8 @@ static void amd64_read_mc_registers(struct amd64_pvt *pvt)
amd64_dump_misc_regs(pvt);
return;
err_reg:
debugf0("Reading an MC register failed\n");