summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2009-12-07 19:04:23 +0100
committerBorislav Petkov <borislav.petkov@amd.com>2009-12-08 13:38:13 +0100
commit18ba54ac1286b4fdb0e61d49fa3ad9363e7cd032 (patch)
treec6d12f17efb9dd97b9212f01643f7079ab4840a0
parentbdc30a0c8c7427a1c1d2e4d149d372d4d77781ee (diff)
downloadop-kernel-dev-18ba54ac1286b4fdb0e61d49fa3ad9363e7cd032.zip
op-kernel-dev-18ba54ac1286b4fdb0e61d49fa3ad9363e7cd032.tar.gz
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>
-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 533f5ff..5fdd6da 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)
{
int node_id = pvt->mc_node_id;
struct mem_ctl_info *mci;
- int ret;
+ int ret = -ENODEV;
amd64_read_mc_registers(pvt);
OpenPOWER on IntegriCloud