summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/pci-nommu.c
diff options
context:
space:
mode:
authorMuli Ben-Yehuda <muli@il.ibm.com>2006-09-26 10:52:32 +0200
committerAndi Kleen <andi@basil.nowhere.org>2006-09-26 10:52:32 +0200
commit145106e81090fcdfb57b7f2e90b98c6445b6f33d (patch)
treedc6b0a457fa38daf7032764ba44f03d14563c4d8 /arch/x86_64/kernel/pci-nommu.c
parent[PATCH] Fix gdt table size in trampoline.S (diff)
downloadlinux-145106e81090fcdfb57b7f2e90b98c6445b6f33d.tar.xz
linux-145106e81090fcdfb57b7f2e90b98c6445b6f33d.zip
[PATCH] remove superflous BUG_ON's in nommu and gart
There's no need to check for invalid DMA data direction in nommu and gart since we do it in dma-mapping.h anyway before calling the individual dma-ops. Signed-off-by: Muli Ben-Yehuda <muli@il.ibm.com> Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'arch/x86_64/kernel/pci-nommu.c')
-rw-r--r--arch/x86_64/kernel/pci-nommu.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/pci-nommu.c b/arch/x86_64/kernel/pci-nommu.c
index aad7609d8e92..df09ab05a1bd 100644
--- a/arch/x86_64/kernel/pci-nommu.c
+++ b/arch/x86_64/kernel/pci-nommu.c
@@ -59,7 +59,6 @@ int nommu_map_sg(struct device *hwdev, struct scatterlist *sg,
{
int i;
- BUG_ON(direction == DMA_NONE);
for (i = 0; i < nents; i++ ) {
struct scatterlist *s = &sg[i];
BUG_ON(!s->page);