summaryrefslogtreecommitdiff
path: root/drivers/staging/r8188eu
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2021-10-24 20:04:44 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-25 09:09:44 +0200
commitdae4c880a8ded5d44d4929bf51bd4f2b5a9fc88a (patch)
tree9c4721dd945134cf2245d52f7a98d86fa4404823 /drivers/staging/r8188eu
parent29ac48f9276130e60abcc35dc75f498f8c322ba1 (diff)
staging: r8188eu: silent_reset_inprogress is never read
silent_reset_inprogress in struct sreset_priv is only written but never read. Remove it. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20211024180448.20624-2-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu')
-rw-r--r--drivers/staging/r8188eu/core/rtw_sreset.c2
-rw-r--r--drivers/staging/r8188eu/include/rtw_sreset.h1
2 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/r8188eu/core/rtw_sreset.c b/drivers/staging/r8188eu/core/rtw_sreset.c
index baa2a080a46e..60596a3a3aad 100644
--- a/drivers/staging/r8188eu/core/rtw_sreset.c
+++ b/drivers/staging/r8188eu/core/rtw_sreset.c
@@ -9,7 +9,6 @@ void sreset_init_value(struct adapter *padapter)
struct sreset_priv *psrtpriv = &pHalData->srestpriv;
mutex_init(&psrtpriv->silentreset_mutex);
- psrtpriv->silent_reset_inprogress = false;
psrtpriv->wifi_error_status = WIFI_STATUS_SUCCESS;
psrtpriv->last_tx_time = 0;
psrtpriv->last_tx_complete_time = 0;
@@ -19,7 +18,6 @@ void sreset_reset_value(struct adapter *padapter)
struct hal_data_8188e *pHalData = GET_HAL_DATA(padapter);
struct sreset_priv *psrtpriv = &pHalData->srestpriv;
- psrtpriv->silent_reset_inprogress = false;
psrtpriv->wifi_error_status = WIFI_STATUS_SUCCESS;
psrtpriv->last_tx_time = 0;
psrtpriv->last_tx_complete_time = 0;
diff --git a/drivers/staging/r8188eu/include/rtw_sreset.h b/drivers/staging/r8188eu/include/rtw_sreset.h
index 45bc227d088a..2489f55d0594 100644
--- a/drivers/staging/r8188eu/include/rtw_sreset.h
+++ b/drivers/staging/r8188eu/include/rtw_sreset.h
@@ -9,7 +9,6 @@
struct sreset_priv {
struct mutex silentreset_mutex;
- u8 silent_reset_inprogress;
u8 wifi_error_status;
unsigned long last_tx_time;
unsigned long last_tx_complete_time;