diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-01-31 10:01:44 -0800 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-12-04 11:54:34 +1100 |
commit | df26200299eb05fa7d059cd235847efc4c4baf80 (patch) | |
tree | 652f56e692f79e2858db5ee5aafcb242c128a50d | |
parent | 2aaf0a198d7af53a946ad69976d3cc7e7673d13f (diff) | |
download | talos-obmc-linux-df26200299eb05fa7d059cd235847efc4c4baf80.tar.gz talos-obmc-linux-df26200299eb05fa7d059cd235847efc4c4baf80.zip |
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 <dmitry.torokhov@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r-- | arch/powerpc/platforms/powermac/feature.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powermac/feature.c b/arch/powerpc/platforms/powermac/feature.c index 9e3f39d36e88..80a31f581d36 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") |