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

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>

authored by

Jiapeng Chong and committed by
Vinod Koul
ee1bf567 84b0aa2e

-6
-6
drivers/dma/qcom/hidma.c
··· 90 90 return container_of(dmach, struct hidma_chan, chan); 91 91 } 92 92 93 - static inline 94 - struct hidma_desc *to_hidma_desc(struct dma_async_tx_descriptor *t) 95 - { 96 - return container_of(t, struct hidma_desc, desc); 97 - } 98 - 99 93 static void hidma_free(struct hidma_dev *dmadev) 100 94 { 101 95 INIT_LIST_HEAD(&dmadev->ddev.channels);