dmaengine: axi-dmac: Small code cleanup
authorPaul Cercueil <paul@crapouillou.net>
Fri, 15 Dec 2023 13:13:09 +0000 (14:13 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 21 Dec 2023 16:09:56 +0000 (21:39 +0530)
commita2ab7045389feab1c26ebab105a8ad6bce74a4a7
tree136cf027ed67d42405debcaddc079b2021b83bb1
parent71e7d3cb6e55ae2eadcdb178f9243dc18499d369
dmaengine: axi-dmac: Small code cleanup

Use a for() loop instead of a while() loop in axi_dmac_fill_linear_sg().
This makes the code leaner and cleaner overall, and does not introduce
any functional change.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20231215131313.23840-2-paul@crapouillou.net
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dma-axi-dmac.c