Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: sprd: delete redundant parameter for dma driver function

The parameter *sdesc in function sprd_dma_check_trans_done is not
used, so here delete redundant parameter.

Signed-off-by: Kaiwei Liu <kaiwei.liu@unisoc.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230919014929.17037-1-kaiwei.liu@unisoc.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Kaiwei Liu and committed by
Vinod Koul
f1009d32 14f6d317

+2 -4
+2 -4
drivers/dma/sprd-dma.c
··· 572 572 schan->cur_desc = NULL; 573 573 } 574 574 575 - static bool sprd_dma_check_trans_done(struct sprd_dma_desc *sdesc, 576 - enum sprd_dma_int_type int_type, 575 + static bool sprd_dma_check_trans_done(enum sprd_dma_int_type int_type, 577 576 enum sprd_dma_req_mode req_mode) 578 577 { 579 578 if (int_type == SPRD_DMA_NO_INT) ··· 618 619 vchan_cyclic_callback(&sdesc->vd); 619 620 } else { 620 621 /* Check if the dma request descriptor is done. */ 621 - trans_done = sprd_dma_check_trans_done(sdesc, int_type, 622 - req_type); 622 + trans_done = sprd_dma_check_trans_done(int_type, req_type); 623 623 if (trans_done == true) { 624 624 vchan_cookie_complete(&sdesc->vd); 625 625 schan->cur_desc = NULL;