Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Wei Yongjun and committed by
Vinod Koul
87ffcea5 1c0e3e82

-1
-1
drivers/dma/qcom/hidma_mgmt.c
··· 402 402 for_each_matching_node(child, hidma_mgmt_match) { 403 403 /* device tree based firmware here */ 404 404 hidma_mgmt_of_populate_channels(child); 405 - of_node_put(child); 406 405 } 407 406 #endif 408 407 platform_driver_register(&hidma_mgmt_driver);