powerpc/powermac: drop useless call to of_find_node_by_name
Subsystems (2)
PATCH 1/1 powerpc/powermac: drop useless call to of_find_node_by_name
We are not using result, so this simply results in a leaked refcount.
Signed-off-by Dmitry Torokhov <[email protected]>
---
Found by visual inspection, not tested...
arch/powerpc/platforms/powermac/feature.c | 1 - 1 file changed, 1 deletion(-)
arch/powerpc/platforms/powermac/feature.c +0 -1
@@ -2853,7 +2853,6 @@ set_initial_features(void) }/* Enable ATA-100 before PCI probe. */ - np =of_find_node_by_name (NULL ,"ata-6" );for_each_node_by_name (np,"ata-6" ) {if (np->parent && of_device_is_compatible(np->parent, "uni-north")
Signature · 5 lines
2.11.0.483.g087da7b7c-goog -- Dmitry
Michael Ellerman
AppliedQuoted 3 lines · Dmitry Torokhov
We are not using result, so this simply results in a leaked refcount.
Signed-off-by Dmitry Torokhov <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/df26200299eb05fa7d059cd235847e
cheers