ChangeSet 1.2229.1.12, 2005/04/04 07:37:20-07:00, [EMAIL PROTECTED]

        [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 <[EMAIL PROTECTED]>
        Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
        Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>



 prom.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/arch/ppc/syslib/prom.c b/arch/ppc/syslib/prom.c
--- a/arch/ppc/syslib/prom.c    2005-04-04 08:15:54 -07:00
+++ b/arch/ppc/syslib/prom.c    2005-04-04 08:15:54 -07:00
@@ -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;
 
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to