diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2024-03-08 14:18:48 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-11 15:12:07 +0200 |
commit | d3eb521378a685150396687c3c7a10a877ed065a (patch) | |
tree | 8bc5ac7d1a76bcd14e30d4f9b2051d6887d22297 /drivers/comedi | |
parent | uio_hv_generic: Remove use of PAGE_SIZE (diff) | |
download | linux-d3eb521378a685150396687c3c7a10a877ed065a.tar.xz linux-d3eb521378a685150396687c3c7a10a877ed065a.zip |
comedi: remove unused helper function dma_chain_flag_bits
The helper function dma_chain_flag_bits is not being called from
anywhere, it is redundant and can be removed.
Cleans up clang scan build warning:
drivers/comedi/drivers/cb_pcidas64.c:377:28: warning: unused
function 'dma_chain_flag_bits' [-Wunused-function]
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://lore.kernel.org/r/20240308131848.2057693-1-colin.i.king@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/comedi')
-rw-r--r-- | drivers/comedi/drivers/cb_pcidas64.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/comedi/drivers/cb_pcidas64.c b/drivers/comedi/drivers/cb_pcidas64.c index ff19fc3859e4..d398c6df9482 100644 --- a/drivers/comedi/drivers/cb_pcidas64.c +++ b/drivers/comedi/drivers/cb_pcidas64.c @@ -374,11 +374,6 @@ static inline u16 pipe_full_bits(u16 hw_status_bits) return (hw_status_bits >> 10) & 0x3; }; -static inline unsigned int dma_chain_flag_bits(u16 prepost_bits) -{ - return (prepost_bits >> 6) & 0x3; -} - static inline unsigned int adc_upper_read_ptr_code(u16 prepost_bits) { return (prepost_bits >> 12) & 0x3; |