瀏覽代碼

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>
Wei Yongjun 8 年之前
父節點
當前提交
87ffcea553
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/dma/qcom/hidma_mgmt.c

+ 0 - 1
drivers/dma/qcom/hidma_mgmt.c

@@ -402,7 +402,6 @@ static int __init hidma_mgmt_init(void)
 	for_each_matching_node(child, hidma_mgmt_match) {
 		/* device tree based firmware here */
 		hidma_mgmt_of_populate_channels(child);
-		of_node_put(child);
 	}
 #endif
 	platform_driver_register(&hidma_mgmt_driver);