From: Ben Hutchings Date: Mon, 6 Nov 2017 01:09:48 +0000 (+0000) Subject: edac: i7300_edac: Fix 'may be used uninitialized' warning X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fad0af2782115ba9c0527b297837193af3a9402;p=pandora-kernel.git edac: i7300_edac: Fix 'may be used uninitialized' warning gcc 4.7 warns that nr_pages may be used uninitialized in i7300_init_csrows(). In fact, the case where it's not initialised is an error that will result in returning early without using it. Silence the warning by initialising to 0. This was done upstream as part of commit 084a4fccef39 "edac: move dimm properties to struct dimm_info". Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed