projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdc30a0
)
amd64_edac: fix use-uninitialised bug
author
Andrew Morton
<akpm@linux-foundation.org>
Mon, 7 Dec 2009 18:04:23 +0000
(19:04 +0100)
committer
Borislav Petkov
<borislav.petkov@amd.com>
Tue, 8 Dec 2009 12:38:13 +0000
(13:38 +0100)
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>
drivers/edac/amd64_edac.c
patch
|
blob
|
history
diff --git
a/drivers/edac/amd64_edac.c
b/drivers/edac/amd64_edac.c
index 533f5ff2ec33f596b88cfd36f8839a088bdf027e..5fdd6daa40eaef5ba7b3284663d0741c592f2c01 100644
(file)
--- 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);