]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] arch/powerpc/sysdev/cpm2_pic.c of_node_get cleanup
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>
Tue, 2 Jan 2007 11:36:20 +0000 (12:36 +0100)
committerPaul Mackerras <paulus@samba.org>
Wed, 24 Jan 2007 10:13:57 +0000 (21:13 +1100)
Remove redundant argument check for of_node_get().
It's ok to remove 'node' check because in real life cpm2_pic_init()
never gets called with node == NULL.

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/sysdev/cpm2_pic.c

index 767ee6651adc2be412c3c574b4f7026126c27c1f..e2739eb93cdf1085a84b595ab2a9d78c2c63931e 100644 (file)
@@ -245,9 +245,7 @@ void cpm2_pic_init(struct device_node *node)
        cpm2_intctl->ic_scprrl = 0x05309770;
 
        /* create a legacy host */
-       if (node)
-               cpm2_pic_node = of_node_get(node);
-
+       cpm2_pic_node = of_node_get(node);
        cpm2_pic_host = irq_alloc_host(IRQ_HOST_MAP_LINEAR, 64, &cpm2_pic_host_ops, 64);
        if (cpm2_pic_host == NULL) {
                printk(KERN_ERR "CPM2 PIC: failed to allocate irq host!\n");