diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2021-04-01 11:53:36 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-04-12 13:44:09 +0200 |
commit | ee1bf567c90df6fd04a3c31acb0995cb13f62c48 (patch) | |
tree | 62f6c990d02e56b378c9110986134577d3b7a947 /drivers/dma/qcom/hidma.c | |
parent | dmaengine: dw-edma: Add pcim_iomap_table return check (diff) | |
download | linux-ee1bf567c90df6fd04a3c31acb0995cb13f62c48.tar.xz linux-ee1bf567c90df6fd04a3c31acb0995cb13f62c48.zip |
dmaengine: qcom_hidma: remove unused code
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>
Link: https://lore.kernel.org/r/1617270816-36400-1-git-send-email-jiapeng.chong@linux.alibaba.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/qcom/hidma.c')
-rw-r--r-- | drivers/dma/qcom/hidma.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c index 6c0f9eb8ecc6..23d64489d25f 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); |