Skip to contentSkip to conversation

staging: rts5208: remove unused xd_check_err_code function

PATCH New Tom Rix 1 participant 1 message Mar 21, 2023 Staging

lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/staging/rts5208/xd.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/staging/rts5208/xd.c +0 -7
index 42cab93982c0..c0af378ada71 100644
@@ -31,13 +31,6 @@ static inline void xd_set_err_code(struct rtsx_chip *chip, u8 err_code)
 	xd_card->err_code = err_code;
 }
 
-static inline int xd_check_err_code(struct rtsx_chip *chip, u8 err_code)
-{
-	struct xd_info *xd_card = &chip->xd_card;
-
-	return (xd_card->err_code == err_code);
-}
-
 static int xd_set_init_para(struct rtsx_chip *chip)
 {
 	struct xd_info *xd_card = &chip->xd_card;
Signature · 1 line
2.27.0