By simply changing the do-while loop into a plain
while loop.
Signed-off-by: David S. Miller <davem@davemloft.net>
u64 *pglist = p->pglist;
unsigned long npages = p->npages;
u64 *pglist = p->pglist;
unsigned long npages = p->npages;
long num;
num = pci_sun4v_iommu_map(devhandle, HV_PCI_TSBID(0, entry),
long num;
num = pci_sun4v_iommu_map(devhandle, HV_PCI_TSBID(0, entry),
entry += num;
npages -= num;
pglist += num;
entry += num;
npages -= num;
pglist += num;
p->entry = entry;
p->npages = 0;
p->entry = entry;
p->npages = 0;