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

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
d3eb5213 76457f9a

-5
-5
drivers/comedi/drivers/cb_pcidas64.c
··· 374 374 return (hw_status_bits >> 10) & 0x3; 375 375 }; 376 376 377 - static inline unsigned int dma_chain_flag_bits(u16 prepost_bits) 378 - { 379 - return (prepost_bits >> 6) & 0x3; 380 - } 381 - 382 377 static inline unsigned int adc_upper_read_ptr_code(u16 prepost_bits) 383 378 { 384 379 return (prepost_bits >> 12) & 0x3;