Commit df262002 authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Michael Ellerman

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: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 2aaf0a19
...@@ -2853,7 +2853,6 @@ set_initial_features(void) ...@@ -2853,7 +2853,6 @@ set_initial_features(void)
} }
/* Enable ATA-100 before PCI probe. */ /* Enable ATA-100 before PCI probe. */
np = of_find_node_by_name(NULL, "ata-6");
for_each_node_by_name(np, "ata-6") { for_each_node_by_name(np, "ata-6") {
if (np->parent if (np->parent
&& of_device_is_compatible(np->parent, "uni-north") && of_device_is_compatible(np->parent, "uni-north")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment