提交 9e28d7e8 编写于 作者: R Russell King 提交者: Russell King

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

... rather than incrementing the sg pointer.
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 d667522f
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册