[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20171012140505.GP30097@localhost>
Date: Thu, 12 Oct 2017 19:35:05 +0530
From: Vinod Koul <vinod.koul@...el.com>
To: Colin King <colin.king@...onical.com>
Cc: Dan Williams <dan.j.williams@...el.com>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue <alexandre.torgue@...com>,
dmaengine@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][dma-next] dmaengine: stm32: remove redundant
initialization of hwdesc
On Wed, Oct 11, 2017 at 11:28:22AM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> hwdesc is being initialized to desc->hwdesc but this is never read
> as hwdesc is overwritten in a for-loop. Remove the redundant
> initialization and move the declaration of hwdesc into the for-loop.
>
> Cleans up clang warning:
> Value stored to 'hwdesc' during its initialization is never read
Applied, thanks
--
~Vinod
Powered by blists - more mailing lists