powerpc/82xx: Delete an unnecessary of_node_put() call in pq2ads_pci_init_irq()
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 27 Aug 2019 06:44:20 +0000 (08:44 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 31 Jan 2021 11:35:50 +0000 (22:35 +1100)
commit60aece416483fdf7e51728a3518438e0458bdabb
tree327fd54d953acde0dc4bd8e55842d3e7aca34827
parent6e7a4da754f3087fa1f0839c1128aac233c21442
powerpc/82xx: Delete an unnecessary of_node_put() call in pq2ads_pci_init_irq()

A null pointer would be passed to a call of the function “of_node_put”
immediately after a call of the function “of_find_compatible_node” failed
at one place.
Remove this superfluous function call.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/9c060a41-438b-6fb8-d549-37c72fae4898@web.de
arch/powerpc/platforms/82xx/pq2ads-pci-pic.c