staging: rtl8188eu: Remove "last_tx_complete_time" from struct sreset_priv
authornavin patidar <navin.patidar@gmail.com>
Thu, 29 May 2014 17:50:55 +0000 (23:20 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:28:50 +0000 (15:28 -0700)
value stored in variable last_tx_complete_time isn't being used
by driver.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_sreset.c
drivers/staging/rtl8188eu/include/rtw_sreset.h
drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c

index cc21f3dbce59f46645f91901c0db0d35f9c8ff15..3b846d3577c947c0b6e388e39431af3fffa79716 100644 (file)
@@ -26,7 +26,6 @@ void sreset_init_value(struct adapter *padapter)
        struct sreset_priv *psrtpriv = &pHalData->srestpriv;
 
        psrtpriv->Wifi_Error_Status = WIFI_STATUS_SUCCESS;
-       psrtpriv->last_tx_complete_time = 0;
 }
 
 u8 sreset_get_wifi_status(struct adapter *padapter)
index 6cf792f95724da92b1a58c2e03ff82bc713e8f5a..580e850511a739b9cdf101a96104746a47bca927 100644 (file)
@@ -25,7 +25,6 @@
 
 struct sreset_priv {
        u8      Wifi_Error_Status;
-       unsigned long last_tx_complete_time;
 };
 
 #include <rtl8188e_hal.h>
index 4622efaf3e53c08baebe49e2f1b5602f8bd2c194..0b5fbb928018fa79e009195973e37d0cad711cf3 100644 (file)
@@ -71,8 +71,6 @@ static void usb_write_port_complete(struct urb *purb, struct pt_regs *regs)
        struct xmit_buf *pxmitbuf = (struct xmit_buf *)purb->context;
        struct adapter  *padapter = pxmitbuf->padapter;
        struct xmit_priv        *pxmitpriv = &padapter->xmitpriv;
-       struct hal_data_8188e   *haldata;
-
 
        switch (pxmitbuf->flags) {
        case VO_QUEUE_INX:
@@ -137,9 +135,6 @@ static void usb_write_port_complete(struct urb *purb, struct pt_regs *regs)
                }
        }
 
-       haldata = GET_HAL_DATA(padapter);
-       haldata->srestpriv.last_tx_complete_time = jiffies;
-
 check_completion:
        rtw_sctx_done_err(&pxmitbuf->sctx,
                          purb->status ? RTW_SCTX_DONE_WRITE_PORT_ERR :