Skip to content

Commit

Permalink
[ARM] dma: convert IOMD DMA to use sg_next()
Browse files Browse the repository at this point in the history
... rather than incrementing the sg pointer.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Dec 11, 2008
1 parent d667522 commit 9e28d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-rpc/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9e28d7e

Please sign in to comment.