Skip to contentSkip to conversation

dmaengine: sprd: delete redundant parameter for dma driver function

PATCH Applied Kaiwei Liu 2 participants 2 messages Sep 19, 2023 – Sep 28, 2023

Subsystems (2)
lore
Share & tools
lore

Kaiwei Liu

author
#0 lore raw

PATCH v3 1/1 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.

---
Change in V2:
-Change subject line.
---
change in V3:
-Fix typo in the subject.

---
 drivers/dma/sprd-dma.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/dma/sprd-dma.c +2 -4
index 2b639adb48ba..20c3cb1ef2f5 100644
@@ -572,8 +572,7 @@ static void sprd_dma_stop(struct sprd_dma_chn *schan)
 	schan->cur_desc = NULL;
 }
 
-static bool sprd_dma_check_trans_done(struct sprd_dma_desc *sdesc,
-				      enum sprd_dma_int_type int_type,
+static bool sprd_dma_check_trans_done(enum sprd_dma_int_type int_type,
 				      enum sprd_dma_req_mode req_mode)
 {
 	if (int_type == SPRD_DMA_NO_INT)
@@ -619,8 +618,7 @@ static irqreturn_t dma_irq_handle(int irq, void *dev_id)
 			vchan_cyclic_callback(&sdesc->vd);
 		} else {
 			/* Check if the dma request descriptor is done. */
-			trans_done = sprd_dma_check_trans_done(sdesc, int_type,
-							       req_type);
+			trans_done = sprd_dma_check_trans_done(int_type, req_type);
 			if (trans_done == true) {
 				vchan_cookie_complete(&sdesc->vd);
 				schan->cur_desc = NULL;
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw

Re: (subset) [PATCH V3] dmaengine: sprd: delete redundant parameter for dma driver function

Quoted 4 lines · Kaiwei Liu

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

Applied, thanks!

[1/1] dmaengine: sprd: delete redundant parameter for dma driver function

      commit: 8038557622beaa6145a6b17be948490b835691ac

Best regards,

Signature · 1 line
~Vinod