summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2008-09-05 10:58:49 +0200
committerIngo Molnar <mingo@elte.hu>2008-09-05 12:48:13 +0200
commit551b4545bf9658dc5ae5a1277dcd4d7bf0028b28 (patch)
tree05624847e914051a6bbc82f91d3b19674855e254 /arch
parentx86: dma_*_coherent rework patchset v2, fix (diff)
downloadlinux-551b4545bf9658dc5ae5a1277dcd4d7bf0028b28.tar.xz
linux-551b4545bf9658dc5ae5a1277dcd4d7bf0028b28.zip
x86: gart alloc_coherent doesn't need to check NULL device argument
asm/dma-mapping.h guarantees that gart alloc_coherent doesn't get NULL device argument. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/pci-gart_64.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kernel/pci-gart_64.c b/arch/x86/kernel/pci-gart_64.c
index 4d0864900b8c..0b99d4a06f74 100644
--- a/arch/x86/kernel/pci-gart_64.c
+++ b/arch/x86/kernel/pci-gart_64.c
@@ -506,9 +506,6 @@ gart_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_addr,
align_mask = (1UL << get_order(size)) - 1;
- if (!dev)
- dev = &x86_dma_fallback_dev;
-
*dma_addr = dma_map_area(dev, __pa(vaddr), size, DMA_BIDIRECTIONAL,
align_mask);
flush_gart();