]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/dma: remove unnecessary BUG()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 28 Feb 2018 18:21:45 +0000 (19:21 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 14:39:14 +0000 (00:39 +1000)
commitb426ecd1678bba8d4b32592bbdeb65f4b9adc5e1
tree4839c413bed0b0584ae9bd07c78d5c8b5317ccb6
parent067ce73023a71788a528213acf6926600aecb6c5
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>
arch/powerpc/kernel/dma.c