summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2008-09-08 16:19:11 -0700
committerIngo Molnar <mingo@elte.hu>2008-09-09 08:57:09 +0200
commit9fcaff0e660d886e9a766460adbe558dd25de31b (patch)
tree79762aff70c94bc6aa5e63b8d6254d2aaa296d98
parent640aebfe014554ced9c38d2564e38862e488d0eb (diff)
downloadlinux-9fcaff0e660d886e9a766460adbe558dd25de31b.tar.gz
linux-9fcaff0e660d886e9a766460adbe558dd25de31b.tar.bz2
linux-9fcaff0e660d886e9a766460adbe558dd25de31b.zip
x86: unused variable in dma_alloc_coherent_gfp_flags()
Fixed a warning caused by a badly placed ifdef. Signed-off-by: Steven Noonan <steven@uplinklabs.net> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--include/asm-x86/dma-mapping.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/dma-mapping.h b/include/asm-x86/dma-mapping.h
index 0cc022b9a4a1..56075320b813 100644
--- a/include/asm-x86/dma-mapping.h
+++ b/include/asm-x86/dma-mapping.h
@@ -253,9 +253,9 @@ static inline unsigned long dma_alloc_coherent_mask(struct device *dev,
static inline gfp_t dma_alloc_coherent_gfp_flags(struct device *dev, gfp_t gfp)
{
+#ifdef CONFIG_X86_64
unsigned long dma_mask = dma_alloc_coherent_mask(dev, gfp);
-#ifdef CONFIG_X86_64
if (dma_mask <= DMA_32BIT_MASK && !(gfp & GFP_DMA))
gfp |= GFP_DMA32;
#endif