Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e28d7e8 authored by Russell King's avatar Russell King Committed by Russell King
Browse files

[ARM] dma: convert IOMD DMA to use sg_next()



... rather than incrementing the sg pointer.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent d667522f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ static void iomd_get_next_sg(struct scatterlist *sg, struct iomd_dma *idma)

		if (idma->dma.sg->length == 0) {
			if (idma->dma.sgcount > 1) {
				idma->dma.sg++;
				idma->dma.sg = sg_next(idma->dma.sg);
				idma->dma.sgcount--;
			} else {
				idma->dma.sg = NULL;