summaryrefslogtreecommitdiff
path: root/arch/sparc64/kernel/pci_sun4v.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-02-20 01:09:01 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 01:13:44 -0800
commitabf3b7bd89c11492b145e338913c0b511084cff7 (patch)
treefa8d333d0b66e4e7d427817d0b927ab5a901e095 /arch/sparc64/kernel/pci_sun4v.c
parent39334a4b2c52a06960c480b1a4a05f5d5375c8bf (diff)
downloadlwn-abf3b7bd89c11492b145e338913c0b511084cff7.tar.gz
lwn-abf3b7bd89c11492b145e338913c0b511084cff7.zip
[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>
Diffstat (limited to 'arch/sparc64/kernel/pci_sun4v.c')
-rw-r--r--arch/sparc64/kernel/pci_sun4v.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/pci_sun4v.c b/arch/sparc64/kernel/pci_sun4v.c
index 4e9d3c451af2..d9ef0c7580ea 100644
--- a/arch/sparc64/kernel/pci_sun4v.c
+++ b/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. */
npages = prepare_sg(sglist, nelems);
- if (unlikely(npages > PGLIST_NENTS))
- goto bad;
/* Step 2: Allocate a cluster and context, if necessary. */
spin_lock_irqsave(&iommu->lock, flags);