Skip to content

Commit

Permalink
[POWERPC] arch/powerpc/sysdev/mpic.c of_node_get cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mariusz Kozlowski authored and Paul Mackerras committed Jan 24, 2007
1 parent af337c0 commit c3bfc3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/sysdev/mpic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c3bfc3a

Please sign in to comment.