OSDN Git Service

powerpc/powermac: of_node_put() is not needed after iterator
authorzhong jiang <zhongjiang@huawei.com>
Sat, 4 Aug 2018 14:25:00 +0000 (22:25 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 7 Aug 2018 14:32:34 +0000 (00:32 +1000)
commit81d7b08b3cec79a43411e7175401b369090dba29
tree5048e578409790c2bb71f52c394db7e725a531a9
parent656ecc16e8fc2ab44b3d70e3fcc197a7020d0ca5
powerpc/powermac: of_node_put() is not needed after iterator

for_each_node_by_name() iterators only exit normally when the loop
cursor is NULL, So there is no need to call of_node_put().

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Reviewed-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powermac/feature.c