]> git.baikalelectronics.ru Git - kernel.git/commitdiff
alpha: Replace sg++ with sg = sg_next(sg)
authorXu Wang <vulab@iscas.ac.cn>
Wed, 3 Jun 2020 02:31:59 +0000 (02:31 +0000)
committerMatt Turner <mattst88@gmail.com>
Sat, 13 Jun 2020 00:43:18 +0000 (17:43 -0700)
Replace sg++ with sg = sg_next(sg).

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: Matt Turner <mattst88@gmail.com>
arch/alpha/kernel/pci_iommu.c

index 7f1925a32c992cf69ce215c8d1948c1a18248bd9..81037907268d5c964a2cff5cfac4fba526b9622c 100644 (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) {
                        size += sg[1].length;
-                       sg++;
+                       sg = sg_next(sg);
                }
 
                npages = iommu_num_pages(paddr, size, PAGE_SIZE);