summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2020-06-03 04:31:59 +0200
committerMatt Turner <mattst88@gmail.com>2020-06-13 02:43:18 +0200
commite66dd01e33bdea1c580bf037feec39aae6946ade (patch)
treee87f0eec8163d9ab8fdee9210fb7d403b41f71c4 /arch
parentalpha: fix memory barriers so that they conform to the specification (diff)
downloadlinux-e66dd01e33bdea1c580bf037feec39aae6946ade.tar.xz
linux-e66dd01e33bdea1c580bf037feec39aae6946ade.zip
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/alpha/kernel/pci_iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/alpha/kernel/pci_iommu.c b/arch/alpha/kernel/pci_iommu.c
index 7f1925a32c99..81037907268d 100644
--- a/arch/alpha/kernel/pci_iommu.c
+++ b/arch/alpha/kernel/pci_iommu.c
@@ -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);