dmaengine: stm32: remove redundant initialization of hwdesc
authorColin Ian King <colin.king@canonical.com>
Wed, 11 Oct 2017 10:28:22 +0000 (11:28 +0100)
committerVinod Koul <vinod.koul@intel.com>
Thu, 12 Oct 2017 14:04:41 +0000 (19:34 +0530)
commitf2fd4d9f323d8979fe77e673bb555199b531fa1a
tree04dfe5b5bb594c2cfcad8f91404fa6c6d4140857
parentea62e2ccbb18e8adc51a6591682e7efa7818478a
dmaengine: stm32: remove redundant initialization of hwdesc

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

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/stm32-mdma.c