projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8021a4a
)
ARM: dmabounce: avoid needless valid_dma_direction() check
author
Russell King
<rmk+kernel@arm.linux.org.uk>
Sun, 3 Jul 2011 18:46:39 +0000
(19:46 +0100)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Sun, 3 Jul 2011 22:27:49 +0000
(23:27 +0100)
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>
arch/arm/common/dmabounce.c
patch
|
blob
|
history
diff --git
a/arch/arm/common/dmabounce.c
b/arch/arm/common/dmabounce.c
index 8a0588b007e4ba385e840fa501710c1c9db2eaa6..3e0fa1548582ccad68eb51ee8b1ca6e2ee8cbcf5 100644
(file)
--- 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,
dev_dbg(dev, "%s(page=%p,off=%#lx,size=%zx,dir=%x)\n",
__func__, page, offset, size, dir);
- BUG_ON(!valid_dma_direction(dir));
-
if (PageHighMem(page)) {
dev_err(dev, "DMA buffer bouncing of HIGHMEM pages "
"is not supported\n");