summaryrefslogtreecommitdiff
path: root/drivers/edac/e7xxx_edac.c
diff options
context:
space:
mode:
authorAristeu Rozanski <aris@redhat.com>2013-11-21 09:08:03 -0500
committerBorislav Petkov <bp@suse.de>2013-11-30 12:26:36 +0100
commitbd4b9683623d0d91e87cf22f09008c05f56d7483 (patch)
tree395c54e679282888c75cb07c1b0519c30e2ab7f3 /drivers/edac/e7xxx_edac.c
parentdc1ccc48159d63eca5089e507c82c7d22ef60839 (diff)
sb_edac: Shut up compiler warning when EDAC_DEBUG is enabled
Fix this: In file included from drivers/edac/sb_edac.c:27:0: drivers/edac/sb_edac.c: In function ‘sbridge_mce_output_error’: drivers/edac/edac_core.h:50:8: warning: ‘limit’ may be used uninitialized in this function [-Wmaybe-uninitialized] printk(level "EDAC " prefix ": " fmt, ##arg) ^ drivers/edac/sb_edac.c:948:25: note: ‘limit’ was declared here u64 ch_addr, offset, limit, prv = 0; Limit can be initialized to 0. The only way limit wouldn't be initialized is if there are no DIMMs present (which would be a bug of course) and it'd fail on the next test. Signed-off-by: Aristeu Rozanski <arozansk@redhat.com> Cc: Mauro Carvalho Chehab <mchehab@infradead.org> Link: http://lkml.kernel.org/r/20131121122021.GD26009@pd.tnic Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/e7xxx_edac.c')
0 files changed, 0 insertions, 0 deletions