提交 e66dd01e 编写于 作者: X Xu Wang 提交者: Matt Turner

alpha: Replace sg++ with sg = sg_next(sg)

Replace sg++ with sg = sg_next(sg).
Signed-off-by: NXu Wang <vulab@iscas.ac.cn>
Signed-off-by: NMatt Turner <mattst88@gmail.com>
上级 54505a1e
......@@ -638,7 +638,7 @@ sg_fill(struct device *dev, struct scatterlist *leader, struct scatterlist *end,
while (sg+1 < end && (int) sg[1].dma_address == -1) {
size += sg[1].length;
sg++;
sg = sg_next(sg);
}
npages = iommu_num_pages(paddr, size, PAGE_SIZE);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册