Re: [PATCH] powpc:feature: of_node_put is not needed after iterator.

2018-08-04 Thread Tyrel Datwyler
On 08/04/2018 07:25 AM, 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 Reviewed-by: Tyrel Datwyler > --- > arch/powerpc/platforms/powermac/feature.c | 2 -- > 1 f

[PATCH] powpc:feature: of_node_put is not needed after iterator.

2018-08-04 Thread zhong jiang
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 --- arch/powerpc/platforms/powermac/feature.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/powerpc/platforms/powermac/feature.c b/a