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

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

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Xu Wang 2020-06-03 02:31:59 +00:00 committed by Matt Turner
parent 54505a1e20
commit e66dd01e33
1 changed files with 1 additions and 1 deletions

View File

@ -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) { while (sg+1 < end && (int) sg[1].dma_address == -1) {
size += sg[1].length; size += sg[1].length;
sg++; sg = sg_next(sg);
} }
npages = iommu_num_pages(paddr, size, PAGE_SIZE); npages = iommu_num_pages(paddr, size, PAGE_SIZE);