Răsfoiți Sursa

[SPARC64]: Kill stray PGLIST_NENTS check in pci_sun4v.c

I forgot to remove the one in pci_4v_map_sg() during the
iommu batching commit.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 19 ani în urmă
părinte
comite
abf3b7bd89
1 a modificat fișierele cu 0 adăugiri și 2 ștergeri
  1. 0 2
      arch/sparc64/kernel/pci_sun4v.c

+ 0 - 2
arch/sparc64/kernel/pci_sun4v.c

@@ -485,8 +485,6 @@ static int pci_4v_map_sg(struct pci_dev *pdev, struct scatterlist *sglist, int n
 
 
 	/* Step 1: Prepare scatter list. */
 	/* Step 1: Prepare scatter list. */
 	npages = prepare_sg(sglist, nelems);
 	npages = prepare_sg(sglist, nelems);
-	if (unlikely(npages > PGLIST_NENTS))
-		goto bad;
 
 
 	/* Step 2: Allocate a cluster and context, if necessary. */
 	/* Step 2: Allocate a cluster and context, if necessary. */
 	spin_lock_irqsave(&iommu->lock, flags);
 	spin_lock_irqsave(&iommu->lock, flags);