powerpc/powermac: drop useless call to of_find_node_by_name
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 31 Jan 2017 18:01:44 +0000 (10:01 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 4 Dec 2017 00:54:34 +0000 (11:54 +1100)
We are not using result, so this simply results in a leaked refcount.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powermac/feature.c

index 9e3f39d..80a31f5 100644 (file)
@@ -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")