From: Mariusz Kozlowski Date: Tue, 2 Jan 2007 11:50:20 +0000 (+0100) Subject: [POWERPC] arch/powerpc/sysdev/ipic.c of_node_get cleanup X-Git-Tag: v2.6.21-rc2~42^2~3^2~107 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=af337c096ca47ac1a776e6f1ea2cde9a85d0e60b;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/sysdev/ipic.c b/arch/powerpc/sysdev/ipic.c index 746f78c1537..522aa14e8f0 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, return; memset(ipic, 0, sizeof(struct ipic)); - ipic->of_node = node ? of_node_get(node) : NULL; + ipic->of_node = of_node_get(node); ipic->irqhost = irq_alloc_host(IRQ_HOST_MAP_LINEAR, NR_IPIC_INTS,