diff options
author | Paul Mackerras <paulus@samba.org> | 2005-04-03 17:37:20 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-03 17:37:20 -0700 |
commit | 168b5349e7c36927b5b99f963bfbf1f7b50ff0e6 (patch) | |
tree | 6c3b7ef13d8162e030a12c4da1a1fad9918701d7 | |
parent | 02c73cea37291723e19210b024765792db4d082f (diff) | |
download | history-168b5349e7c36927b5b99f963bfbf1f7b50ff0e6.tar.gz |
[PATCH] ppc32: 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 <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | arch/ppc/syslib/prom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ppc/syslib/prom.c b/arch/ppc/syslib/prom.c index 7abcdb526ed5d5..2c64ed627475d0 100644 --- a/arch/ppc/syslib/prom.c +++ b/arch/ppc/syslib/prom.c @@ -308,7 +308,7 @@ map_interrupt(unsigned int **irq, struct device_node **ictrler, 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; |