projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af337c0
)
[POWERPC] arch/powerpc/sysdev/mpic.c of_node_get cleanup
author
Mariusz Kozlowski
<m.kozlowski@tuxland.pl>
Tue, 2 Jan 2007 11:52:47 +0000
(12:52 +0100)
committer
Paul Mackerras
<paulus@samba.org>
Wed, 24 Jan 2007 10:13:57 +0000
(21:13 +1100)
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>
arch/powerpc/sysdev/mpic.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/sysdev/mpic.c
b/arch/powerpc/sysdev/mpic.c
index d01ced11694d2b5bdd4dda33a3aa4913bc4e5aad..62262f2a4a83fe7234ca0efacf54e24cbd4989c8 100644
(file)
--- a/
arch/powerpc/sysdev/mpic.c
+++ b/
arch/powerpc/sysdev/mpic.c
@@
-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,