diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-02-20 04:09:01 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 04:13:44 -0500 |
commit | abf3b7bd89c11492b145e338913c0b511084cff7 (patch) | |
tree | fa8d333d0b66e4e7d427817d0b927ab5a901e095 /arch/sparc64/kernel/pci_sun4v.c | |
parent | 39334a4b2c52a06960c480b1a4a05f5d5375c8bf (diff) |
[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.c | 2 |
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 | |||
485 | 485 | ||
486 | /* Step 1: Prepare scatter list. */ | 486 | /* Step 1: Prepare scatter list. */ |
487 | npages = prepare_sg(sglist, nelems); | 487 | npages = prepare_sg(sglist, nelems); |
488 | if (unlikely(npages > PGLIST_NENTS)) | ||
489 | goto bad; | ||
490 | 488 | ||
491 | /* Step 2: Allocate a cluster and context, if necessary. */ | 489 | /* Step 2: Allocate a cluster and context, if necessary. */ |
492 | spin_lock_irqsave(&iommu->lock, flags); | 490 | spin_lock_irqsave(&iommu->lock, flags); |