diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2007-01-02 06:50:20 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-01-24 05:13:57 -0500 |
commit | af337c096ca47ac1a776e6f1ea2cde9a85d0e60b (patch) | |
tree | 020416d8d9b632373278ddbac02b668e5976abeb /arch/powerpc/sysdev/ipic.c | |
parent | 6690faeb3537fe34950bdc3e10fa14ce4102c92f (diff) |
[POWERPC] arch/powerpc/sysdev/ipic.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/ipic.c')
-rw-r--r-- | arch/powerpc/sysdev/ipic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/ipic.c b/arch/powerpc/sysdev/ipic.c index 746f78c15375..522aa14e8f0d 100644 --- a/arch/powerpc/sysdev/ipic.c +++ b/arch/powerpc/sysdev/ipic.c | |||
@@ -569,7 +569,7 @@ void __init ipic_init(struct device_node *node, | |||
569 | return; | 569 | return; |
570 | 570 | ||
571 | memset(ipic, 0, sizeof(struct ipic)); | 571 | memset(ipic, 0, sizeof(struct ipic)); |
572 | ipic->of_node = node ? of_node_get(node) : NULL; | 572 | ipic->of_node = of_node_get(node); |
573 | 573 | ||
574 | ipic->irqhost = irq_alloc_host(IRQ_HOST_MAP_LINEAR, | 574 | ipic->irqhost = irq_alloc_host(IRQ_HOST_MAP_LINEAR, |
575 | NR_IPIC_INTS, | 575 | NR_IPIC_INTS, |