[PATCH 2/3] dma: at_hdmac: double setup tx len for at91 sama5d3
Henry Nestler
henrynmail-at91 at yahoo.com
Thu Aug 10 08:25:00 PDT 2023
atdma_sg->len and desc->sg[i].len are the same pointer to variable "len".
Only need once.
Signed-off-by: Henry Nestler <henrynmail-at91 at yahoo.com>
---
--- linux-6.1.38.orig/drivers/dma/at_hdmac.c
+++ linux-6.1.38/drivers/dma/at_hdmac.c
@@ -1315,7 +1315,6 @@
atdma_sg->len = len;
total_len += len;
- desc->sg[i].len = len;
atdma_lli_chain(desc, i);
}
break;
More information about the linux-arm-kernel
mailing list