amd64_edac: print debug statements only on error
authorDoug Thompson <dougthompson@xmission.com>
Tue, 4 Aug 2009 10:02:20 +0000 (12:02 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Tue, 4 Aug 2009 10:10:06 +0000 (12:10 +0200)
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>
drivers/edac/amd64_edac.c

index 5fa924d61b10328fcf0accde1461b497adde49a4..e2a10bcba7a14d511ada5eada69cc329a81ab36c 100644 (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");