aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2009-12-07 13:04:23 -0500
committerBorislav Petkov <borislav.petkov@amd.com>2009-12-08 07:38:13 -0500
commit18ba54ac1286b4fdb0e61d49fa3ad9363e7cd032 (patch)
treec6d12f17efb9dd97b9212f01643f7079ab4840a0 /drivers/edac
parentbdc30a0c8c7427a1c1d2e4d149d372d4d77781ee (diff)
amd64_edac: fix use-uninitialised bug
drivers/edac/amd64_edac.c: In function 'amd64_edac_init': drivers/edac/amd64_edac.c:2840: warning: 'ret' may be used uninitialized in this function Cc: Doug Thompson <dougthompson@xmission.com> Cc: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/amd64_edac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index 533f5ff2ec33..5fdd6daa40ea 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -2837,7 +2837,7 @@ static int amd64_init_2nd_stage(struct amd64_pvt *pvt)
2837{ 2837{
2838 int node_id = pvt->mc_node_id; 2838 int node_id = pvt->mc_node_id;
2839 struct mem_ctl_info *mci; 2839 struct mem_ctl_info *mci;
2840 int ret; 2840 int ret = -ENODEV;
2841 2841
2842 amd64_read_mc_registers(pvt); 2842 amd64_read_mc_registers(pvt);
2843 2843