projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a61640
)
powerpc/dma: remove unnecessary BUG()
author
Christophe Leroy
<christophe.leroy@c-s.fr>
Wed, 28 Feb 2018 18:21:45 +0000
(19:21 +0100)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Sun, 3 Jun 2018 14:39:14 +0000
(
00:39
+1000)
Direction is already checked in all calling functions in
include/linux/dma-mapping.h and also in called function __dma_sync()
So really no need to check it once more here.
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/dma.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/dma.c
b/arch/powerpc/kernel/dma.c
index da20569de9d430cabba7f8d8713e0fb0982f801a..e1cd6e979348c562892c27e17caca0ce6441f23a 100644
(file)
--- a/
arch/powerpc/kernel/dma.c
+++ b/
arch/powerpc/kernel/dma.c
@@
-235,8
+235,6
@@
static inline dma_addr_t dma_nommu_map_page(struct device *dev,
enum dma_data_direction dir,
unsigned long attrs)
{
- BUG_ON(dir == DMA_NONE);
-
if (!(attrs & DMA_ATTR_SKIP_CPU_SYNC))
__dma_sync_page(page, offset, size, dir);