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

staging: rts5208: remove unused xd_check_err_code function

clang with W=1 reports
drivers/staging/rts5208/xd.c:34:19: error: unused function
'xd_check_err_code' [-Werror,-Wunused-function]
static inline int xd_check_err_code(struct rtsx_chip *chip, u8 err_code)
^
This function is not used, so remove it.

Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20230321190127.1827703-1-trix@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Tom Rix and committed by
Greg Kroah-Hartman
7045b31e 288dee55

-7
-7
drivers/staging/rts5208/xd.c
··· 31 31 xd_card->err_code = err_code; 32 32 } 33 33 34 - static inline int xd_check_err_code(struct rtsx_chip *chip, u8 err_code) 35 - { 36 - struct xd_info *xd_card = &chip->xd_card; 37 - 38 - return (xd_card->err_code == err_code); 39 - } 40 - 41 34 static int xd_set_init_para(struct rtsx_chip *chip) 42 35 { 43 36 struct xd_info *xd_card = &chip->xd_card;