Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=84532c91206bc6748991fb1ae3ba8a1894d339fa
Commit:     84532c91206bc6748991fb1ae3ba8a1894d339fa
Parent:     8388374f1cd45ef67039d3ea128d250fac484df3
Author:     Benjamin Herrenschmidt <[EMAIL PROTECTED]>
AuthorDate: Wed Mar 7 11:27:37 2007 +0100
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Thu Mar 8 04:09:33 2007 +1100

    [POWERPC] Fix warning in prom_parse.c of_irq_map_oldworld()
    
    This function spews a warning due to possible use of an uninitialized
    variable. This can happen on broken device-trees or when called with
    a NULL argument. Makes ure we properly fail instead.
    
    Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 arch/powerpc/kernel/prom_parse.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/prom_parse.c b/arch/powerpc/kernel/prom_parse.c
index ea6fd55..91b443c 100644
--- a/arch/powerpc/kernel/prom_parse.c
+++ b/arch/powerpc/kernel/prom_parse.c
@@ -916,7 +916,7 @@ EXPORT_SYMBOL_GPL(of_irq_map_raw);
 static int of_irq_map_oldworld(struct device_node *device, int index,
                               struct of_irq *out_irq)
 {
-       const u32 *ints;
+       const u32 *ints = NULL;
        int intlen;
 
        /*
-
To unsubscribe from this list: send the line "unsubscribe git-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