From: Doug Thompson Date: Tue, 4 Aug 2009 10:02:20 +0000 (+0200) Subject: amd64_edac: print debug statements only on error X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c2718348b41a8e7646516d9af8bb0231c6a44374;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git amd64_edac: print debug statements only on error Add forgotten return calls for the successful cases. Signed-off-by: Doug Thompson Signed-off-by: Borislav Petkov --- diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 5fa924d61b1..e2a10bcba7a 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -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");