summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/powermac
diff options
context:
space:
mode:
authorzhong jiang <zhongjiang@huawei.com>2018-08-04 17:25:00 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2018-08-07 17:32:34 +0300
commit81d7b08b3cec79a43411e7175401b369090dba29 (patch)
tree5048e578409790c2bb71f52c394db7e725a531a9 /arch/powerpc/platforms/powermac
parent656ecc16e8fc2ab44b3d70e3fcc197a7020d0ca5 (diff)
downloadlinux-81d7b08b3cec79a43411e7175401b369090dba29.tar.xz
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>
Diffstat (limited to 'arch/powerpc/platforms/powermac')
-rw-r--r--arch/powerpc/platforms/powermac/feature.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/powermac/feature.c b/arch/powerpc/platforms/powermac/feature.c
index 3f82cb24eb2b..4eb8cb38fc69 100644
--- a/arch/powerpc/platforms/powermac/feature.c
+++ b/arch/powerpc/platforms/powermac/feature.c
@@ -2889,10 +2889,8 @@ set_initial_features(void)
/* 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