Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1570954
| From | Dmitry Torokhov <dmitry.torokhov@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] powerpc/powermac: drop useless call to of_find_node_by_name |
| Date | 2017-01-31 19:10 +0100 |
| Message-ID | <t5L2q-3UK-35@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
We are not using result, so this simply results in a leaked refcount.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
Found by visual inspection, not tested...
arch/powerpc/platforms/powermac/feature.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/powerpc/platforms/powermac/feature.c b/arch/powerpc/platforms/powermac/feature.c
index 1e02328c3f2d..730e48111848 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")
--
2.11.0.483.g087da7b7c-goog
--
Dmitry
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] powerpc/powermac: drop useless call to of_find_node_by_name Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-01-31 19:10 +0100
csiph-web