Skip to content

Commit

Permalink
amd64_edac: fix use-uninitialised bug
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Borislav Petkov committed Dec 8, 2009
1 parent bdc30a0 commit 18ba54a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/edac/amd64_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 18ba54a

Please sign in to comment.