aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>2007-01-02 06:52:47 -0500
committerPaul Mackerras <paulus@samba.org>2007-01-24 05:13:57 -0500
commitc3bfc3a8dd337e41cf7b64f815e37f6e2cfbfcdc (patch)
treee36c08cd820be93af9a197d670e145a1642e7932
parentaf337c096ca47ac1a776e6f1ea2cde9a85d0e60b (diff)
[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>
-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 d01ced11694d..62262f2a4a83 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,
912 912
913 memset(mpic, 0, sizeof(struct mpic)); 913 memset(mpic, 0, sizeof(struct mpic));
914 mpic->name = name; 914 mpic->name = name;
915 mpic->of_node = node ? of_node_get(node) : NULL; 915 mpic->of_node = of_node_get(node);
916 916
917 mpic->irqhost = irq_alloc_host(IRQ_HOST_MAP_LINEAR, 256, 917 mpic->irqhost = irq_alloc_host(IRQ_HOST_MAP_LINEAR, 256,
918 &mpic_host_ops, 918 &mpic_host_ops,