staging: r8188eu: remove unused parameter from correct_TSF()
authorMichael Straube <straube.linux@gmail.com>
Fri, 15 Jul 2022 06:29:05 +0000 (08:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jul 2022 06:42:24 +0000 (08:42 +0200)
The parameter 'pmlmeext' of correct_TSF() is unused. Remove it.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220715062908.8547-3-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c
drivers/staging/r8188eu/core/rtw_wlan_util.c
drivers/staging/r8188eu/include/rtw_mlme_ext.h

index 0edcf84db16dff34be0bc2197b936e58fd67d7b6..985cb3b4ba306fc9b0bd02888aaa793ac70d5f56 100644 (file)
@@ -6893,7 +6893,7 @@ void mlmeext_joinbss_event_callback(struct adapter *padapter, int join_res)
 
        if ((pmlmeinfo->state & 0x03) == WIFI_FW_STATION_STATE) {
                /*  correcting TSF */
-               correct_TSF(padapter, pmlmeext);
+               correct_TSF(padapter);
        }
        rtw_lps_ctrl_wk_cmd(padapter, LPS_CTRL_CONNECT, 0);
 }
@@ -6908,7 +6908,7 @@ void mlmeext_sta_add_event_callback(struct adapter *padapter, struct sta_info *p
                        /* nothing to do */
                } else { /* adhoc client */
                        /*  correcting TSF */
-                       correct_TSF(padapter, pmlmeext);
+                       correct_TSF(padapter);
 
                        /* start beacon */
                        if (send_beacon(padapter) == _FAIL) {
index b48e0b9dfd7b54d5219242f62821e7341f34a6a1..7b705e2ea04a3dc81295c0a803ddf33104f831ce 100644 (file)
@@ -1586,7 +1586,7 @@ void update_TSF(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len)
        pmlmeext->TSFValue |= le32_to_cpu(*pbuf);
 }
 
-void correct_TSF(struct adapter *padapter, struct mlme_ext_priv *pmlmeext)
+void correct_TSF(struct adapter *padapter)
 {
        SetHwReg8188EU(padapter, HW_VAR_CORRECT_TSF, NULL);
 }
index 28416d1bd15c994815cb364e3cb4597d3be61312..2110affc180f87beaaf28de8f1ff996e88acb085 100644 (file)
@@ -597,7 +597,7 @@ bool cckrates_included(unsigned char *rate, int ratelen);
 bool cckratesonly_included(unsigned char *rate, int ratelen);
 
 void update_TSF(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len);
-void correct_TSF(struct adapter *padapter, struct mlme_ext_priv *pmlmeext);
+void correct_TSF(struct adapter *padapter);
 
 struct cmd_hdl {
        uint    parmsize;