aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64')
-rw-r--r--arch/ia64/hp/common/sba_iommu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ia64/hp/common/sba_iommu.c b/arch/ia64/hp/common/sba_iommu.c
index 4338f4123f31..3c95f4184b99 100644
--- a/arch/ia64/hp/common/sba_iommu.c
+++ b/arch/ia64/hp/common/sba_iommu.c
@@ -1179,7 +1179,6 @@ sba_fill_pdir(
1179 u64 *pdirp = NULL; 1179 u64 *pdirp = NULL;
1180 unsigned long dma_offset = 0; 1180 unsigned long dma_offset = 0;
1181 1181
1182 dma_sg--;
1183 while (nents-- > 0) { 1182 while (nents-- > 0) {
1184 int cnt = startsg->dma_length; 1183 int cnt = startsg->dma_length;
1185 startsg->dma_length = 0; 1184 startsg->dma_length = 0;
@@ -1201,7 +1200,8 @@ sba_fill_pdir(
1201 u32 pide = startsg->dma_address & ~PIDE_FLAG; 1200 u32 pide = startsg->dma_address & ~PIDE_FLAG;
1202 dma_offset = (unsigned long) pide & ~iovp_mask; 1201 dma_offset = (unsigned long) pide & ~iovp_mask;
1203 startsg->dma_address = 0; 1202 startsg->dma_address = 0;
1204 dma_sg = sg_next(dma_sg); 1203 if (n_mappings)
1204 dma_sg = sg_next(dma_sg);
1205 dma_sg->dma_address = pide | ioc->ibase; 1205 dma_sg->dma_address = pide | ioc->ibase;
1206 pdirp = &(ioc->pdir_base[pide >> iovp_shift]); 1206 pdirp = &(ioc->pdir_base[pide >> iovp_shift]);
1207 n_mappings++; 1207 n_mappings++;