diff options
author | Nam Cao <namcaov@gmail.com> | 2022-09-02 11:51:59 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-09-09 09:49:48 +0200 |
commit | 2d0cb6588d6d18f635f91403d4e82d360f843d17 (patch) | |
tree | be262cd45d5b3fd8324e1cc60373d6e75170b5c3 /drivers | |
parent | 54b1d117d51ab4462e1fc3a1f77ebbbad6996c0b (diff) | |
download | linux-stable-2d0cb6588d6d18f635f91403d4e82d360f843d17.tar.gz linux-stable-2d0cb6588d6d18f635f91403d4e82d360f843d17.tar.bz2 linux-stable-2d0cb6588d6d18f635f91403d4e82d360f843d17.zip |
staging: rtl8723bs: remove IsHexDigit
Remove function IsHexDigit because it is not used.
Signed-off-by: Nam Cao <namcaov@gmail.com>
Link: https://lore.kernel.org/r/8c70ecd9bea1dff2cb8f69e12bbef6aa4ee39977.1662111799.git.namcaov@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/rtl8723bs/hal/hal_com.c | 19 | ||||
-rw-r--r-- | drivers/staging/rtl8723bs/include/hal_com.h | 2 |
2 files changed, 0 insertions, 21 deletions
diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8723bs/hal/hal_com.c index 010a097c3afd..e42556d03bce 100644 --- a/drivers/staging/rtl8723bs/hal/hal_com.c +++ b/drivers/staging/rtl8723bs/hal/hal_com.c @@ -861,25 +861,6 @@ bool eqNByte(u8 *str1, u8 *str2, u32 num) /* */ /* Description: */ -/* Return true if chTmp is represent for hex digit and */ -/* false otherwise. */ -/* */ -/* */ -bool IsHexDigit(char chTmp) -{ - if ( - (chTmp >= '0' && chTmp <= '9') || - (chTmp >= 'a' && chTmp <= 'f') || - (chTmp >= 'A' && chTmp <= 'F') - ) - return true; - else - return false; -} - - -/* */ -/* Description: */ /* Translate a character to hex digit. */ /* */ u32 MapCharToHexDigit(char chTmp) diff --git a/drivers/staging/rtl8723bs/include/hal_com.h b/drivers/staging/rtl8723bs/include/hal_com.h index 76ad979c2a36..6356b8c2ef81 100644 --- a/drivers/staging/rtl8723bs/include/hal_com.h +++ b/drivers/staging/rtl8723bs/include/hal_com.h @@ -147,8 +147,6 @@ u8 GetHalDefVar(struct adapter *adapter, enum hal_def_variable variable, bool eqNByte(u8 *str1, u8 *str2, u32 num); -bool IsHexDigit(char chTmp); - u32 MapCharToHexDigit(char chTmp); bool ParseQualifiedString(char *In, u32 *Start, char *Out, char LeftQualifier, |