From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vinod Koul Date: Wed, 02 Jan 2019 06:15:24 +0000 Subject: Re: [PATCH 12/20] dmaengine: dw: drop useless LIST_HEAD Message-Id: <20190102060324.GF7581@vkoul-mobl> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Julia Lawall Cc: Viresh Kumar , kernel-janitors@vger.kernel.org, Andy Shevchenko , Dan Williams , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org On 23-12-18, 09:57, Julia Lawall wrote: > 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/) > > // > @@ > identifier x; > @@ > - LIST_HEAD(x); > ... when != x > // Applied, thanks -- ~Vinod