staging: r8188eu: silentreset_mutex is unused
authorMartin Kaiser <martin@kaiser.cx>
Sun, 24 Oct 2021 18:04:46 +0000 (20:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Oct 2021 07:09:44 +0000 (09:09 +0200)
silentreset_mutex from struct sreset_priv is not used. Remove it.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211024180448.20624-4-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_sreset.c
drivers/staging/r8188eu/include/rtw_sreset.h

index 08e5b1b00bd18fb1f759cd4a9f7bad8b32af4cee..bf436a653c71ab70f14afbf64523728c9c481b01 100644 (file)
@@ -8,7 +8,6 @@ void sreset_init_value(struct adapter *padapter)
        struct hal_data_8188e   *pHalData = GET_HAL_DATA(padapter);
        struct sreset_priv *psrtpriv = &pHalData->srestpriv;
 
-       mutex_init(&psrtpriv->silentreset_mutex);
        psrtpriv->last_tx_time = 0;
        psrtpriv->last_tx_complete_time = 0;
 }
index 1a3745dabfb6b77fb25409a02817aa3ad08040e7..f404cbd54f9fabbed7478fceed0c3886387f1f1a 100644 (file)
@@ -8,7 +8,6 @@
 #include "drv_types.h"
 
 struct sreset_priv {
-       struct mutex    silentreset_mutex;
        unsigned long last_tx_time;
        unsigned long last_tx_complete_time;
 };