aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hans de Goede <hdegoede@redhat.com> 2023-02-21 15:53:25 +0100
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2023-03-08 17:57:05 +0100
commitfea50d5fba5a03ddb5c81863533afdaa91002690 (patch)
treea8247959bfb42f9e15aae681f32a4b7feceaec2d
parentdrivers: staging: rtl8723bs: Fix locking in rtw_scan_timeout_handler() (diff)
downloadlinux-fea50d5fba5a03ddb5c81863533afdaa91002690.tar.gz
linux-fea50d5fba5a03ddb5c81863533afdaa91002690.tar.bz2
linux-fea50d5fba5a03ddb5c81863533afdaa91002690.zip
drivers: staging: rtl8723bs: Remove unused clr_fwstate() function
The clr_fwstate() function is not used anywhere, remove it. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20230221145326.7808-3-hdegoede@redhat.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8723bs/include/rtw_mlme.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/staging/rtl8723bs/include/rtw_mlme.h b/drivers/staging/rtl8723bs/include/rtw_mlme.h
index 1b343b434f4d..ee748620107f 100644
--- a/drivers/staging/rtl8723bs/include/rtw_mlme.h
+++ b/drivers/staging/rtl8723bs/include/rtw_mlme.h
@@ -490,18 +490,6 @@ static inline void _clr_fwstate_(struct mlme_priv *pmlmepriv, signed int state)
pmlmepriv->bScanInProcess = false;
}
-/*
- * No Limit on the calling context,
- * therefore set it to be the critical section...
- */
-static inline void clr_fwstate(struct mlme_priv *pmlmepriv, signed int state)
-{
- spin_lock_bh(&pmlmepriv->lock);
- if (check_fwstate(pmlmepriv, state) == true)
- pmlmepriv->fw_state ^= state;
- spin_unlock_bh(&pmlmepriv->lock);
-}
-
static inline void set_scanned_network_val(struct mlme_priv *pmlmepriv, signed int val)
{
spin_lock_bh(&pmlmepriv->lock);