Commit 06c31475 authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by Paul Mackerras
Browse files

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

Remove redundant argument check for of_node_get().
It's ok to remove 'node' check because in real life cpm2_pic_init()
never gets called with node == NULL.
Signed-off-by: default avatarMariusz Kozlowski <>
Signed-off-by: default avatarPaul Mackerras <>
parent a15d5eaa
......@@ -245,9 +245,7 @@ void cpm2_pic_init(struct device_node *node)
cpm2_intctl->ic_scprrl = 0x05309770;
/* create a legacy host */
if (node)
cpm2_pic_node = of_node_get(node);
cpm2_pic_node = of_node_get(node);
cpm2_pic_host = irq_alloc_host(IRQ_HOST_MAP_LINEAR, 64, &cpm2_pic_host_ops, 64);
if (cpm2_pic_host == NULL) {
printk(KERN_ERR "CPM2 PIC: failed to allocate irq host!\n");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment