staging: rtl8723bs: remove IsHexDigit
authorNam Cao <namcaov@gmail.com>
Fri, 2 Sep 2022 09:51:59 +0000 (11:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Sep 2022 07:49:48 +0000 (09:49 +0200)
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>
drivers/staging/rtl8723bs/hal/hal_com.c
drivers/staging/rtl8723bs/include/hal_com.h

index 010a097c3afd23f6cc3d13f6d27725c2503a38c0..e42556d03bce96229e5fb008cd69b6bbe232bef9 100644 (file)
@@ -859,25 +859,6 @@ bool eqNByte(u8 *str1, u8 *str2, u32 num)
        return true;
 }
 
-/*  */
-/*     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. */
index 76ad979c2a36023e5c8e1cd4908d1e4839111056..6356b8c2ef814a32d2fa20a0b8cd39dd392d18ac 100644 (file)
@@ -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,