mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 17:24:17 +08:00
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>
This commit is contained in:
parent
5a61640e32
commit
9887334b80
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user