[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1647512562-18246-1-git-send-email-baihaowen@meizu.com>
Date: Thu, 17 Mar 2022 18:22:42 +0800
From: Haowen Bai <baihaowen@...zu.com>
To: <vkoul@...nel.org>
CC: <dmaengine@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Haowen Bai <baihaowen@...zu.com>
Subject: [PATCH] dmaengine: pl08x: remove unneeded variable: "retval". Return "NULL"
Unneeded variable: "retval". Return "NULL" , so we have to make code clear.
Signed-off-by: Haowen Bai <baihaowen@...zu.com>
---
drivers/dma/amba-pl08x.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index a24882b..c70552a 100644
--- a/drivers/dma/amba-pl08x.c
+++ b/drivers/dma/amba-pl08x.c
@@ -1538,9 +1538,7 @@ static void pl08x_free_chan_resources(struct dma_chan *chan)
static struct dma_async_tx_descriptor *pl08x_prep_dma_interrupt(
struct dma_chan *chan, unsigned long flags)
{
- struct dma_async_tx_descriptor *retval = NULL;
-
- return retval;
+ return NULL;
}
/*
--
2.7.4
Powered by blists - more mailing lists