[PATCH] Use valid_dma_direction() in include/asm-i386/dma-mapping.h
authorRolf Eike Beer <eike-kernel@sf-tec.de>
Fri, 29 Sep 2006 08:59:49 +0000 (01:59 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:10 +0000 (09:18 -0700)
commitcd1c6a48ac16b360746f9f111895931d332c35dd
treefc26eaff11fd8bc8f2d725e3519211998a558351
parentd6bd3a39f7c6ebad49c261c3d458df974c880758
[PATCH] Use valid_dma_direction() in include/asm-i386/dma-mapping.h

Now that the generic DMA code has a function to decide if a given DMA
mapping is valid use it.  This will catch cases where direction is not any
of the defined enum values but some random number outside the valid range.
The current implementation will only catch the defined but invalid case
DMA_NONE.

Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Acked-by: Muli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-i386/dma-mapping.h