From: Dmitry Torokhov Date: Tue, 31 Jan 2017 18:01:44 +0000 (-0800) Subject: powerpc/powermac: drop useless call to of_find_node_by_name X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=df26200299eb05fa7d059cd235847efc4c4baf80;p=linux.git 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 Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/platforms/powermac/feature.c b/arch/powerpc/platforms/powermac/feature.c index 9e3f39d36e88f..80a31f581d361 100644 --- a/arch/powerpc/platforms/powermac/feature.c +++ b/arch/powerpc/platforms/powermac/feature.c @@ -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")