diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-10-22 16:38:54 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-11-14 04:38:32 +0100 |
commit | 87ffcea5530393e771ea34ba2e98986258e534f2 (patch) | |
tree | eac92774609db2c82c6c18b120377c1f333887dc /drivers/dma/qcom | |
parent | dmaengine: qcom_hidma: add MSI support for interrupts (diff) | |
download | linux-87ffcea5530393e771ea34ba2e98986258e534f2.tar.xz linux-87ffcea5530393e771ea34ba2e98986258e534f2.zip |
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>
Diffstat (limited to 'drivers/dma/qcom')
-rw-r--r-- | drivers/dma/qcom/hidma_mgmt.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dma/qcom/hidma_mgmt.c b/drivers/dma/qcom/hidma_mgmt.c index 185d29c77c22..985f5ac2695d 100644 --- a/drivers/dma/qcom/hidma_mgmt.c +++ b/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); |