Re: [PATCH 07/20] dmaengine: at_hdmac: drop useless LIST_HEAD
From: Vinod Koul
Date: Wed Jan 02 2019 - 01:06:31 EST
On 23-12-18, 09:57, Julia Lawall wrote:
> Drop LIST_HEAD where the variable it declares is never used.
>
> tmp_list has been declared since the introduction of the driver
> and has never been used. The two declarations of list were
> introduced with the containing functions but were also 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>
Applied with Ludovic's ack, thanks
--
~Vinod