Commit 87ffcea5 authored by Wei Yongjun's avatar Wei Yongjun Committed by Vinod Koul

dmaengine: qcom_hidma: remove unneeded of_node_put()

Device node iterators put the previous value of the index variable, so an
explicit put causes a double put.

Generated by: scripts/coccinelle/iterators/device_node_continue.cocci
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 1c0e3e82
...@@ -402,7 +402,6 @@ static int __init hidma_mgmt_init(void) ...@@ -402,7 +402,6 @@ static int __init hidma_mgmt_init(void)
for_each_matching_node(child, hidma_mgmt_match) { for_each_matching_node(child, hidma_mgmt_match) {
/* device tree based firmware here */ /* device tree based firmware here */
hidma_mgmt_of_populate_channels(child); hidma_mgmt_of_populate_channels(child);
of_node_put(child);
} }
#endif #endif
platform_driver_register(&hidma_mgmt_driver); platform_driver_register(&hidma_mgmt_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment