dmaengine: sh: Fix unused initialization of pointer lmdesc
authorColin Ian King <colin.king@canonical.com>
Sun, 29 Aug 2021 15:28:11 +0000 (16:28 +0100)
committerVinod Koul <vkoul@kernel.org>
Tue, 31 Aug 2021 16:19:25 +0000 (21:49 +0530)
commit1e008336b9f590eb749ac96ccef4ea0301f79619
treeda037458e9d67dc59772553d99a36cc65bb819a9
parent8f031494df0e5bed90f262c138f592535946910d
dmaengine: sh: Fix unused initialization of pointer lmdesc

Pointer lmdesc is being inintialized with a value that is never read,
it is later being re-assigned a new value. Fix this by initializing
it with the latter value.

Addresses-Coverity: ("Unused value")
Fixes: 550c591a89a1 ("dmaengine: sh: Add DMAC driver for RZ/G2L SoC")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210829152811.529766-1-colin.king@canonical.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sh/rz-dmac.c