staging: rtl8723au: sreset_priv->dbg_trigger_point is never set
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 26 Jun 2014 08:20:53 +0000 (10:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2014 00:34:17 +0000 (20:34 -0400)
No point carrying a bunch of code around that is never going to get
called.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_sreset.c
drivers/staging/rtl8723au/hal/rtl8723a_sreset.c
drivers/staging/rtl8723au/include/rtw_sreset.h

index c19831cb99171eb72d46e9020569ab865d0e7dd4..c152aefb59ea51d8640db8cf8f5a3233c4c01ba5 100644 (file)
@@ -37,13 +37,6 @@ void rtw_sreset_reset_value(struct rtw_adapter *padapter)
        psrtpriv->last_tx_complete_time = 0;
 }
 
-void sreset_set_trigger_point(struct rtw_adapter *padapter, s32 tgp)
-{
-       struct hal_data_8723a   *pHalData = GET_HAL_DATA(padapter);
-
-       pHalData->srestpriv.dbg_trigger_point = tgp;
-}
-
 bool rtw_sreset_inprogress(struct rtw_adapter *padapter)
 {
        struct rtw_adapter *primary_adapter = GET_PRIMARY_ADAPTER(padapter);
index 4374036dfede0ff7cd1a9731663e25c6f9bbc15c..54a08a1e148b6883369f31770750003489c6f98a 100644 (file)
@@ -52,22 +52,8 @@ void rtl8723a_sreset_xmit_status_check(struct rtw_adapter *padapter)
                        }
                }
        }
-
-       if (psrtpriv->dbg_trigger_point == SRESET_TGP_XMIT_STATUS) {
-               psrtpriv->dbg_trigger_point = SRESET_TGP_NULL;
-               rtw_sreset_reset(padapter);
-               return;
-       }
 }
 
 void rtl8723a_sreset_linked_status_check(struct rtw_adapter *padapter)
 {
-       struct hal_data_8723a   *pHalData = GET_HAL_DATA(padapter);
-       struct sreset_priv *psrtpriv = &pHalData->srestpriv;
-
-       if (psrtpriv->dbg_trigger_point == SRESET_TGP_LINK_STATUS) {
-               psrtpriv->dbg_trigger_point = SRESET_TGP_NULL;
-               rtw_sreset_reset(padapter);
-               return;
-       }
 }
index 47996145329cda73835e831f4e77a8fbdbbed62b..60fa8296e1ff3ed42cfe74a954d344558180a4c7 100644 (file)
 #include <osdep_service.h>
 #include <drv_types.h>
 
-enum {
-       SRESET_TGP_NULL = 0,
-       SRESET_TGP_XMIT_STATUS = 1,
-       SRESET_TGP_LINK_STATUS = 2,
-};
-
 struct sreset_priv {
        struct mutex    silentreset_mutex;
        u8      silent_reset_inprogress;
        unsigned long last_tx_time;
        unsigned long last_tx_complete_time;
-
-       s32 dbg_trigger_point;
 };
 
 #include <rtl8723a_hal.h>