dmaengine: ti: k3-udma: Do not use ring_get_occ in udma_pop_from_ring
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 7 Jul 2020 10:23:49 +0000 (13:23 +0300)
committerVinod Koul <vkoul@kernel.org>
Wed, 15 Jul 2020 06:06:55 +0000 (11:36 +0530)
commit3b8bee2a96ce7a5e47239f3a0cb39caffa8358a4
treeedd09733c5a07923206404b4c4830e9da411d18e
parent2166d96029bc88a90f431aca7f51e714c653e027
dmaengine: ti: k3-udma: Do not use ring_get_occ in udma_pop_from_ring

The ring_get_occ is redundant as the k3_ringacc_ring_pop() is also
checking the occ of the ring.

With removing the ring_get_occ, the function can be simplified as well.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Link: https://lore.kernel.org/r/20200707102352.28773-3-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/k3-udma.c