Skip to content

Commit e66dd01

Browse files
ISCAS-Vulabmattst88
authored andcommitted
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>
1 parent 54505a1 commit e66dd01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/alpha/kernel/pci_iommu.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ sg_fill(struct device *dev, struct scatterlist *leader, struct scatterlist *end,
638638

639639
while (sg+1 < end && (int) sg[1].dma_address == -1) {
640640
size += sg[1].length;
641-
sg++;
641+
sg = sg_next(sg);
642642
}
643643

644644
npages = iommu_num_pages(paddr, size, PAGE_SIZE);

0 commit comments

Comments
 (0)