projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abf3b7b
)
[SPARC64]: Handle zero-length map requests in pci_sun4v.c
author
David S. Miller
<davem@davemloft.net>
Mon, 20 Feb 2006 09:42:51 +0000
(
01:42
-0800)
committer
David S. Miller
<davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:13:45 +0000
(
01:13
-0800)
By simply changing the do-while loop into a plain
while loop.
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/pci_sun4v.c
patch
|
blob
|
history
diff --git
a/arch/sparc64/kernel/pci_sun4v.c
b/arch/sparc64/kernel/pci_sun4v.c
index d9ef0c7580ea3c41b45f146e33ce52d1b3cb01ab..a9c44c0ae0a78eab6647d585f8a48699af985b3f 100644
(file)
--- a/
arch/sparc64/kernel/pci_sun4v.c
+++ b/
arch/sparc64/kernel/pci_sun4v.c
@@
-57,7
+57,7
@@
static long pci_iommu_batch_flush(struct pci_iommu_batch *p)
u64 *pglist = p->pglist;
unsigned long npages = p->npages;
-
do
{
+
while (npages != 0)
{
long num;
num = pci_sun4v_iommu_map(devhandle, HV_PCI_TSBID(0, entry),
@@
-75,7
+75,7
@@
static long pci_iommu_batch_flush(struct pci_iommu_batch *p)
entry += num;
npages -= num;
pglist += num;
- }
while (npages != 0);
+ }
p->entry = entry;
p->npages = 0;