[PATCH][dma-next] dmaengine: stm32: remove redundant initialization of hwdesc

Vinod Koul vinod.koul at intel.com
Thu Oct 12 07:05:05 PDT 2017


On Wed, Oct 11, 2017 at 11:28:22AM +0100, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.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



More information about the linux-arm-kernel mailing list