summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2018-02-28 19:21:45 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2018-06-04 00:39:14 +1000
commit9887334b804892f10262fa7f805998d554e04367 (patch)
tree4839c413bed0b0584ae9bd07c78d5c8b5317ccb6 /arch/powerpc/kernel
parent5a61640e322693028a36452f637681d388e4c241 (diff)
downloadtalos-obmc-linux-9887334b804892f10262fa7f805998d554e04367.tar.gz
talos-obmc-linux-9887334b804892f10262fa7f805998d554e04367.zip
powerpc/dma: remove unnecessary BUG()
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>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/dma.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/dma.c b/arch/powerpc/kernel/dma.c
index da20569de9d4..e1cd6e979348 100644
--- 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);
OpenPOWER on IntegriCloud