Skip to content
Snippets Groups Projects
Commit e66dd01e authored by Xu Wang's avatar Xu Wang Committed by Matt Turner
Browse files

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


Replace sg++ with sg = sg_next(sg).

Signed-off-by: default avatarXu Wang <vulab@iscas.ac.cn>
Signed-off-by: default avatarMatt Turner <mattst88@gmail.com>
parent 54505a1e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment