Skip to content

Commit

Permalink
amd64_edac: print debug statements only on error
Browse files Browse the repository at this point in the history
Add forgotten return calls for the successful cases.

Signed-off-by: Doug Thompson <dougthompson@xmission.com>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
  • Loading branch information
Doug Thompson authored and Borislav Petkov committed Aug 4, 2009
1 parent 126b67b commit c271834
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/edac/amd64_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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");

Expand Down

0 comments on commit c271834

Please sign in to comment.