Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <colin.i.king@gmail.com>
Reviewed-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://lore.kernel.org/r/20211204140032.548066-1-colin.i.king@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Colin Ian King and committed by
Vinod Koul
d697e831 7930d855

+1 -1
+1 -1
drivers/dma/stm32-mdma.c
··· 1279 1279 u32 curr_hwdesc) 1280 1280 { 1281 1281 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; 1283 1283 u32 cbndtr, residue, modulo, burst_size; 1284 1284 int i; 1285 1285