dmaengine: ti: k3-udma: Remove redundant is_slave_direction() checks
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 24 Aug 2020 12:01:20 +0000 (15:01 +0300)
committerVinod Koul <vkoul@kernel.org>
Tue, 25 Aug 2020 10:24:21 +0000 (15:54 +0530)
commit8f757317b8645f2f602f4fcefd5b1f31f774e63b
tree5dfcb2b82514cbc8beff686bd6c64cbc33d94dfc
parent144ceb27d737b853113ea4aa7d7c9b3dfe98be0b
dmaengine: ti: k3-udma: Remove redundant is_slave_direction() checks

The direction has been already validated in the main callback and there is
no need to check it again in the TR mode handlers for slave_sg and cyclic.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20200824120120.9270-1-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/k3-udma.c