Skip to content

Commit d697e83

Browse files
ColinIanKingvinodkoul
authored andcommitted
dmaengine: stm32-mdma: Remove redundant initialization of pointer hwdesc
The pointer hwdesc is being initialized with a value that is never read, it is being updated later in a for-loop. The assignment is redundant and can be removed. Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Amelie Delaunay <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 7930d85 commit d697e83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/stm32-mdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ static size_t stm32_mdma_desc_residue(struct stm32_mdma_chan *chan,
12791279
u32 curr_hwdesc)
12801280
{
12811281
struct stm32_mdma_device *dmadev = stm32_mdma_get_dev(chan);
1282-
struct stm32_mdma_hwdesc *hwdesc = desc->node[0].hwdesc;
1282+
struct stm32_mdma_hwdesc *hwdesc;
12831283
u32 cbndtr, residue, modulo, burst_size;
12841284
int i;
12851285

0 commit comments

Comments
 (0)