Skip to content

Commit

Permalink
x86: unused variable in dma_alloc_coherent_gfp_flags()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Noonan authored and Ingo Molnar committed Sep 9, 2008
1 parent 640aebf commit 9fcaff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-x86/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9fcaff0

Please sign in to comment.