diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2009-12-07 18:04:23 (GMT) |
---|---|---|
committer | Borislav Petkov <borislav.petkov@amd.com> | 2009-12-08 12:38:13 (GMT) |
commit | 18ba54ac1286b4fdb0e61d49fa3ad9363e7cd032 (patch) | |
tree | c6d12f17efb9dd97b9212f01643f7079ab4840a0 /drivers/edac | |
parent | bdc30a0c8c7427a1c1d2e4d149d372d4d77781ee (diff) | |
download | linux-18ba54ac1286b4fdb0e61d49fa3ad9363e7cd032.tar.xz |
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.c | 2 |
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); |