diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2018-12-23 03:57:07 -0500 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-01-06 23:19:26 -0500 |
commit | 1bd09f869f9b294b5645e2ac153ee59604ef959e (patch) | |
tree | 4ffee62ca548f3628ed283cbbcc2483a124d9da1 /drivers/dma/dw | |
parent | e7987a0659421c2bfe5bcf3bc689876ba9be5f3f (diff) |
dmaengine: dw: drop useless LIST_HEAD
Drop LIST_HEAD where the variable it declares is never used.
Commit ab703f818ac3 ("dmaengine: dw: lazy allocation of dma
descriptors") removed the uses, but not the declaration.
The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
identifier x;
@@
- LIST_HEAD(x);
... when != x
// </smpl>
Fixes: ab703f818ac3 ("dmaengine: dw: lazy allocation of dma descriptors")
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/dw')
-rw-r--r-- | drivers/dma/dw/core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dma/dw/core.c b/drivers/dma/dw/core.c index dc053e62f894..290d21be4d4c 100644 --- a/drivers/dma/dw/core.c +++ b/drivers/dma/dw/core.c | |||
@@ -1150,7 +1150,6 @@ static void dwc_free_chan_resources(struct dma_chan *chan) | |||
1150 | struct dw_dma_chan *dwc = to_dw_dma_chan(chan); | 1150 | struct dw_dma_chan *dwc = to_dw_dma_chan(chan); |
1151 | struct dw_dma *dw = to_dw_dma(chan->device); | 1151 | struct dw_dma *dw = to_dw_dma(chan->device); |
1152 | unsigned long flags; | 1152 | unsigned long flags; |
1153 | LIST_HEAD(list); | ||
1154 | 1153 | ||
1155 | dev_dbg(chan2dev(chan), "%s: descs allocated=%u\n", __func__, | 1154 | dev_dbg(chan2dev(chan), "%s: descs allocated=%u\n", __func__, |
1156 | dwc->descs_allocated); | 1155 | dwc->descs_allocated); |