Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20239
b: refs/heads/master
c: 0d54106
h: refs/heads/master
i:
  20237: fc6075e
  20235: 66e7ac2
  20231: 3ff3d2c
  20223: 69c3042
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Feb 13, 2006
1 parent 3ef5161 commit 9bc026f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a65d17c9d27a85782cfe1bbc36c747ffa1f81814
refs/heads/master: 0d541064e8f58858e11cd34d81b6e83617f6eb4a
6 changes: 2 additions & 4 deletions trunk/arch/x86_64/kernel/pci-gart.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ void gart_unmap_sg(struct device *dev, struct scatterlist *sg, int nents, int di

for (i = 0; i < nents; i++) {
struct scatterlist *s = &sg[i];
if (!s->dma_length || !s->length)
if (!s->dma_length)
break;
dma_unmap_single(dev, s->dma_address, s->dma_length, dir);
}
Expand Down Expand Up @@ -364,7 +364,6 @@ static int __dma_map_cont(struct scatterlist *sg, int start, int stopat,

BUG_ON(i > start && s->offset);
if (i == start) {
*sout = *s;
sout->dma_address = iommu_bus_base;
sout->dma_address += iommu_page*PAGE_SIZE + s->offset;
sout->dma_length = s->length;
Expand All @@ -379,7 +378,7 @@ static int __dma_map_cont(struct scatterlist *sg, int start, int stopat,
SET_LEAK(iommu_page);
addr += PAGE_SIZE;
iommu_page++;
}
}
}
BUG_ON(iommu_page - iommu_start != pages);
return 0;
Expand All @@ -391,7 +390,6 @@ static inline int dma_map_cont(struct scatterlist *sg, int start, int stopat,
{
if (!need) {
BUG_ON(stopat - start != 1);
*sout = sg[start];
sout->dma_length = sg[start].length;
return 0;
}
Expand Down

0 comments on commit 9bc026f

Please sign in to comment.