Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f194969 authored by Julia Lawall's avatar Julia Lawall Committed by Vinod Koul
Browse files

dmaengine: pl330: drop useless LIST_HEAD

Drop LIST_HEAD where the variable it declares is never used.

The variable has not been used since the function was introduced
in 740aa957 ("dmaengine: pl330: Split device_control").

The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/

)

// <smpl>
@@
identifier x;
@@
- LIST_HEAD(x);
  ... when != x
// </smpl>

Fixes: 740aa957 ("dmaengine: pl330: Split device_control")
Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 3c763b38
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2267,7 +2267,6 @@ static int pl330_terminate_all(struct dma_chan *chan)
	struct dma_pl330_desc *desc;
	unsigned long flags;
	struct pl330_dmac *pl330 = pch->dmac;
	LIST_HEAD(list);
	bool power_down = false;

	pm_runtime_get_sync(pl330->ddma.dev);