dmaengine: xilinx_dma: Remove desc_callback_valid check
authorRadhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Tue, 15 Oct 2019 14:48:18 +0000 (20:18 +0530)
committerVinod Koul <vkoul@kernel.org>
Sun, 20 Oct 2019 14:05:26 +0000 (19:35 +0530)
commit005a017926ffe648b38b6462748a74c850a31e62
tree75c536fdef2121300a59bcd556590431d4891586
parenta6e9be055d47fecdb090c2fb6cd2fdeaf820353c
dmaengine: xilinx_dma: Remove desc_callback_valid check

In descriptor cleanup the call to desc_callback_valid can be safely
removed as both callback pointers i.e callback_result and callback
are anyway checked in invoke(). There is no much benefit in having
redundant checks.

Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: Nicholas Graumann <nick.graumann@gmail.com>
Reviewed-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
Link: https://lore.kernel.org/r/1571150904-3988-2-git-send-email-radhey.shyam.pandey@xilinx.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xilinx_dma.c