提交 c3bfc3a8 编写于 作者: M Mariusz Kozlowski 提交者: Paul Mackerras

[POWERPC] arch/powerpc/sysdev/mpic.c of_node_get cleanup

No need for ?: because of_node_get() can handle NULL argument.
Signed-off-by: NMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 af337c09
...@@ -912,7 +912,7 @@ struct mpic * __init mpic_alloc(struct device_node *node, ...@@ -912,7 +912,7 @@ struct mpic * __init mpic_alloc(struct device_node *node,
memset(mpic, 0, sizeof(struct mpic)); memset(mpic, 0, sizeof(struct mpic));
mpic->name = name; 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->irqhost = irq_alloc_host(IRQ_HOST_MAP_LINEAR, 256,
&mpic_host_ops, &mpic_host_ops,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册