From: FUJITA Tomonori Date: Fri, 5 Sep 2008 08:58:49 +0000 (+0900) Subject: x86: gart alloc_coherent doesn't need to check NULL device argument X-Git-Tag: v2.6.28-rc1~712^2^4~64 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=551b4545bf9658dc5ae5a1277dcd4d7bf0028b28;p=linux-2.6-omap-h63xx.git 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 Acked-by: Joerg Roedel Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/pci-gart_64.c b/arch/x86/kernel/pci-gart_64.c index 4d0864900b8..0b99d4a06f7 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();