mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nam Cao <namcaov@gmail.com>
To: Larry.Finger@lwfinger.net, gregkh@linuxfoundation.org,
	hdegoede@redhat.com
Cc: namcaov@gmail.com, linux-kernel@vger.kernel.org,
	linux-staging@lists.linux.dev
Subject: [PATCH 09/10] staging: rtl8723bs: remove IsHexDigit
Date: Fri,  2 Sep 2022 11:51:59 +0200	[thread overview]
Message-ID: <8c70ecd9bea1dff2cb8f69e12bbef6aa4ee39977.1662111799.git.namcaov@gmail.com> (raw)
In-Reply-To: <cover.1662111798.git.namcaov@gmail.com>

Remove function IsHexDigit because it is not used.

Signed-off-by: Nam Cao <namcaov@gmail.com>
---
 drivers/staging/rtl8723bs/hal/hal_com.c     | 19 -------------------
 drivers/staging/rtl8723bs/include/hal_com.h |  2 --
 2 files changed, 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
@@ -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. */
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,
-- 
2.25.1


  parent reply	other threads:[~2022-09-02  9:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-02  9:51 [PATCH 00/10] staging: rtl8723bs: delete some dead code Nam Cao
2022-09-02  9:51 ` [PATCH 01/10] staging: rtl8723bs: delete rtw_setdatarate_cmd Nam Cao
2022-09-02  9:51 ` [PATCH 02/10] staging: rtl8723bs: delete function rtw_set_chplan_cmd Nam Cao
2022-09-02  9:51 ` [PATCH 03/10] staging: rtl8723bs: remove rtw_change_ifname Nam Cao
2022-09-02  9:51 ` [PATCH 04/10] staging: rtl8723bs: delete rtw_odm.c and rtw_odm.h Nam Cao
2022-09-02  9:51 ` [PATCH 05/10] staging: rtl8723bs: remove odm_PauseDIG Nam Cao
2022-09-02  9:51 ` [PATCH 06/10] staging: rtl8723bs: remove GetHexValueFromString Nam Cao
2022-09-02  9:51 ` [PATCH 07/10] staging: rtl8723bs: remove hal_btcoex_SetManualControl Nam Cao
2022-09-02  9:51 ` [PATCH 08/10] staging: rtl8723bs: remove rtw_hal_is_disable_sw_channel_plan Nam Cao
2022-09-02  9:51 ` Nam Cao [this message]
2022-09-02  9:52 ` [PATCH 10/10] staging: rtl8723bs: remove rtw_is_wps_ie Nam Cao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8c70ecd9bea1dff2cb8f69e12bbef6aa4ee39977.1662111799.git.namcaov@gmail.com \
    --to=namcaov@gmail.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=hdegoede@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®