aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/common
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-07-03 14:46:39 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-07-03 18:27:49 -0400
commit71695dd8b9eacfcda1b548a5b1780d34213ad654 (patch)
tree98545768397aa7ba804eb062a1badb8e0cec90cb /arch/arm/common
parent8021a4a048a85906302bd0236f3d125473be65b1 (diff)
ARM: dmabounce: avoid needless valid_dma_direction() check
This check is done at the DMA API level, so there's no point repeating it here. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/common')
-rw-r--r--arch/arm/common/dmabounce.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/common/dmabounce.c b/arch/arm/common/dmabounce.c
index 8a0588b007e4..3e0fa1548582 100644
--- a/arch/arm/common/dmabounce.c
+++ b/arch/arm/common/dmabounce.c
@@ -334,8 +334,6 @@ dma_addr_t __dma_map_page(struct device *dev, struct page *page,
334 dev_dbg(dev, "%s(page=%p,off=%#lx,size=%zx,dir=%x)\n", 334 dev_dbg(dev, "%s(page=%p,off=%#lx,size=%zx,dir=%x)\n",
335 __func__, page, offset, size, dir); 335 __func__, page, offset, size, dir);
336 336
337 BUG_ON(!valid_dma_direction(dir));
338
339 if (PageHighMem(page)) { 337 if (PageHighMem(page)) {
340 dev_err(dev, "DMA buffer bouncing of HIGHMEM pages " 338 dev_err(dev, "DMA buffer bouncing of HIGHMEM pages "
341 "is not supported\n"); 339 "is not supported\n");