for_each_node_by_name iterators only exit normally when the loop
cursor is NULL, So there is no point to call of_node_put.
Signed-off-by: zhong jiang <redacted>
---
arch/powerpc/platforms/powermac/feature.c | 2 --
1 file changed, 2 deletions(-)
@@ -2889,10 +2889,8 @@ static void __init probe_one_macio(const char *name, const char *compat, int typ/* On all machines, switch modem & serial ports off */for_each_node_by_name(np,"ch-a")initial_serial_shutdown(np);-of_node_put(np);for_each_node_by_name(np,"ch-b")initial_serial_shutdown(np);-of_node_put(np);}void__init
for_each_node_by_name iterators only exit normally when the loop
cursor is NULL, So there is no point to call of_node_put.
Signed-off-by: zhong jiang <redacted>
@@ -2889,10 +2889,8 @@ static void __init probe_one_macio(const char *name, const char *compat, int typ/* On all machines, switch modem & serial ports off */for_each_node_by_name(np,"ch-a")initial_serial_shutdown(np);-of_node_put(np);for_each_node_by_name(np,"ch-b")initial_serial_shutdown(np);-of_node_put(np);}void__init
From: Michael Ellerman <hidden> Date: 2018-08-08 14:26:54
On Sat, 2018-08-04 at 14:25:00 UTC, zhong jiang wrote:
for_each_node_by_name iterators only exit normally when the loop
cursor is NULL, So there is no point to call of_node_put.
Signed-off-by: zhong jiang <redacted>
Reviewed-by: Tyrel Datwyler <redacted>