diff options
author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2022-10-25 12:02:48 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-11-08 10:43:57 +0530 |
commit | 28cbe5a0a46a6637adbda52337d7b2777fc04027 (patch) | |
tree | 3881f8bd9036c0173e79b96390142dec336ce18c /include | |
parent | dmaengine: at_hdmac: Don't allow CPU to reorder channel enable (diff) | |
download | linux-dev-28cbe5a0a46a6637adbda52337d7b2777fc04027.tar.xz linux-dev-28cbe5a0a46a6637adbda52337d7b2777fc04027.zip |
dmaengine: at_hdmac: Fix impossible condition
The iterator can not be greater than ATC_MAX_DSCR_TRIALS, as the for loop
will stop when i == ATC_MAX_DSCR_TRIALS. While here, use the common "i"
name for the iterator.
Fixes: 93dce3a6434f ("dmaengine: at_hdmac: fix residue computation")
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Cc: stable@vger.kernel.org
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20221025090306.297886-1-tudor.ambarus@microchip.com
Link: https://lore.kernel.org/r/20221025090306.297886-15-tudor.ambarus@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions