Skip to content

Commit 4665be0

Browse files
ColinIanKingvinodkoul
authored andcommitted
dmaengine: pch_dma: remove unused function chan2parent
The helper function chan2parent is not used and has never been used since the first commit to the code back in 2010. The function is redundant and can be removed. Cleans up clang scan build warning: drivers/dma/pch_dma.c:158:30: warning: unused function 'chan2parent' [-Wunused-function] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20240308134750.2058556-1-colin.i.king@gmail.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent ebf8506 commit 4665be0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/dma/pch_dma.c

-5
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,6 @@ static inline struct device *chan2dev(struct dma_chan *chan)
155155
return &chan->dev->device;
156156
}
157157

158-
static inline struct device *chan2parent(struct dma_chan *chan)
159-
{
160-
return chan->dev->device.parent;
161-
}
162-
163158
static inline
164159
struct pch_dma_desc *pdc_first_active(struct pch_dma_chan *pd_chan)
165160
{

0 commit comments

Comments
 (0)