]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: st_fdma: drop useless LIST_HEAD
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 23 Dec 2018 08:57:09 +0000 (09:57 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 7 Jan 2019 04:19:26 +0000 (09:49 +0530)
commit7d44b0c1563c6aeb9617bc4123a3f4401f7369eb
tree2372ba22574eadeaf11a5fda056b6940efa84d1c
parenta84575cb07eff611aea049cc306f08e0e98c4a3d
dmaengine: st_fdma: drop useless LIST_HEAD

Drop LIST_HEAD where the variable it declares is never used.

The declarations were introduced with the file, but the declared
variables were not used.

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

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

Fixes: d95c5767574d ("dmaengine: st_fdma: Add STMicroelectronics FDMA engine driver support")
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/st_fdma.c