diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2007-01-02 12:52:47 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-01-24 21:13:57 +1100 |
commit | c3bfc3a8dd337e41cf7b64f815e37f6e2cfbfcdc (patch) | |
tree | e36c08cd820be93af9a197d670e145a1642e7932 /arch/powerpc/sysdev | |
parent | af337c096ca47ac1a776e6f1ea2cde9a85d0e60b (diff) | |
download | op-kernel-dev-c3bfc3a8dd337e41cf7b64f815e37f6e2cfbfcdc.zip op-kernel-dev-c3bfc3a8dd337e41cf7b64f815e37f6e2cfbfcdc.tar.gz |
[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')
-rw-r--r-- | arch/powerpc/sysdev/mpic.c | 2 |
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, |