Message ID | 95114539-d177-4be7-81bd-a10ef9dd64f2@web.de (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | pci/hotplug/pnv_php: Reduce of_node_put(dn) calls in pnv_php_register_slot() | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/github-powerpc_kernel_qemu | success | Successfully ran 21 jobs. |
snowpatch_ozlabs/github-powerpc_sparse | success | Successfully ran 4 jobs. |
snowpatch_ozlabs/github-powerpc_clang | success | Successfully ran 5 jobs. |
diff --git a/drivers/pci/hotplug/pnv_php.c b/drivers/pci/hotplug/pnv_php.c index 573a41869c15..fcbf20db136b 100644 --- a/drivers/pci/hotplug/pnv_php.c +++ b/drivers/pci/hotplug/pnv_php.c @@ -697,12 +697,9 @@ static int pnv_php_register_slot(struct pnv_php_slot *php_slot) } parent = pnv_php_find_slot(dn); - if (parent) { - of_node_put(dn); - break; - } - of_node_put(dn); + if (parent) + break; } spin_lock_irqsave(&pnv_php_lock, flags);