Skip to contentSkip to conversation

powerpc/powermac: drop useless call to of_find_node_by_name

PATCH Applied Dmitry Torokhov 2 participants 2 messages Jan 31, 2017 – Dec 12, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---

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
index 1e02328c3f2d..730e48111848 100644
@@ -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