ppc: eliminate gcc warning in prom.c
PATCH 1/1 ppc: eliminate gcc warning in prom.c
This patch shuts up a couple of gcc "variable may be used uninitialized" warnings. The warnings are invalid - the code is such that the variables are in fact initialized before being used - but gcc isn't smart enough to see that. This patch eliminates the warnings.
Signed-off-by Paul Mackerras <[email protected]>
arch/ppc/syslib/prom.c +1 -1
@@ -308,7 +308,7 @@struct device_node *p, *ipar;unsigned int *imap, *imask, *ip;int i, imaplen, match; -int newintrc, newaddrc; +int newintrc =1 , newaddrc =1 ;unsigned int *reg;int naddrc;