Skip to content

Commit

Permalink
[POWERPC] arch/powerpc/sysdev/qe_lib of_node_get cleanup
Browse files Browse the repository at this point in the history
No need for ?: as of_node_get() can handle NULL argument.

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>

 arch/powerpc/sysdev/qe_lib/qe_ic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Mariusz Kozlowski authored and Paul Mackerras committed Jan 24, 2007
1 parent c3bfc3a commit a15d5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/sysdev/qe_lib/qe_ic.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ void __init qe_ic_init(struct device_node *node, unsigned int flags)
return;

memset(qe_ic, 0, sizeof(struct qe_ic));
qe_ic->of_node = node ? of_node_get(node) : NULL;
qe_ic->of_node = of_node_get(node);

qe_ic->irqhost = irq_alloc_host(IRQ_HOST_MAP_LINEAR,
NR_QE_IC_INTS, &qe_ic_host_ops, 0);
Expand Down

0 comments on commit a15d5ea

Please sign in to comment.