aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/mpic.c
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2007-01-02 12:52:47 +0100
committerPaul Mackerras <paulus@samba.org>2007-01-24 21:13:57 +1100
commitc3bfc3a8dd337e41cf7b64f815e37f6e2cfbfcdc (patch)
treee36c08cd820be93af9a197d670e145a1642e7932 /arch/powerpc/sysdev/mpic.c
parentaf337c096ca47ac1a776e6f1ea2cde9a85d0e60b (diff)
downloadkernel_samsung_aries-c3bfc3a8dd337e41cf7b64f815e37f6e2cfbfcdc.zip
kernel_samsung_aries-c3bfc3a8dd337e41cf7b64f815e37f6e2cfbfcdc.tar.gz
kernel_samsung_aries-c3bfc3a8dd337e41cf7b64f815e37f6e2cfbfcdc.tar.bz2
[POWERPC] arch/powerpc/sysdev/mpic.c of_node_get cleanup
No need for ?: because of_node_get() can handle NULL argument. Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/sysdev/mpic.c')
-rw-r--r--arch/powerpc/sysdev/mpic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c
index d01ced1..62262f2 100644
--- a/arch/powerpc/sysdev/mpic.c
+++ b/arch/powerpc/sysdev/mpic.c
@@ -912,7 +912,7 @@ struct mpic * __init mpic_alloc(struct device_node *node,
memset(mpic, 0, sizeof(struct mpic));
mpic->name = name;
- mpic->of_node = node ? of_node_get(node) : NULL;
+ mpic->of_node = of_node_get(node);
mpic->irqhost = irq_alloc_host(IRQ_HOST_MAP_LINEAR, 256,
&mpic_host_ops,