dmaengine.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dmaengine: qcom_hidma: remove unused code
@ 2021-04-01  9:53 Jiapeng Chong
  2021-04-12 11:44 ` Vinod Koul
  0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2021-04-01  9:53 UTC (permalink / raw)
  To: okaya
  Cc: agross, bjorn.andersson, vkoul, linux-arm-kernel, linux-arm-msm,
	dmaengine, linux-kernel, Jiapeng Chong

Fix the following clang warning:

drivers/dma/qcom/hidma.c:94:20: warning: unused function 'to_hidma_desc'
[-Wunused-function].

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 drivers/dma/qcom/hidma.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c
index 6c0f9eb..23d6448 100644
--- a/drivers/dma/qcom/hidma.c
+++ b/drivers/dma/qcom/hidma.c
@@ -90,12 +90,6 @@ static inline struct hidma_chan *to_hidma_chan(struct dma_chan *dmach)
 	return container_of(dmach, struct hidma_chan, chan);
 }
 
-static inline
-struct hidma_desc *to_hidma_desc(struct dma_async_tx_descriptor *t)
-{
-	return container_of(t, struct hidma_desc, desc);
-}
-
 static void hidma_free(struct hidma_dev *dmadev)
 {
 	INIT_LIST_HEAD(&dmadev->ddev.channels);
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] dmaengine: qcom_hidma: remove unused code
  2021-04-01  9:53 [PATCH] dmaengine: qcom_hidma: remove unused code Jiapeng Chong
@ 2021-04-12 11:44 ` Vinod Koul
  0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2021-04-12 11:44 UTC (permalink / raw)
  To: Jiapeng Chong
  Cc: okaya, agross, bjorn.andersson, linux-arm-kernel, linux-arm-msm,
	dmaengine, linux-kernel

On 01-04-21, 17:53, Jiapeng Chong wrote:
> Fix the following clang warning:
> 
> drivers/dma/qcom/hidma.c:94:20: warning: unused function 'to_hidma_desc'
> [-Wunused-function].

Applied, thanks

-- 
~Vinod

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-12 11:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-01  9:53 [PATCH] dmaengine: qcom_hidma: remove unused code Jiapeng Chong
2021-04-12 11:44 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).