staging: r8188eu: remove unused argument in chk_ap_is_alive
authorAbdun Nihaal <abdun.nihaal@gmail.com>
Wed, 9 Feb 2022 16:36:06 +0000 (22:06 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Feb 2022 16:13:21 +0000 (17:13 +0100)
The function argument padapter is not used in chk_ap_is_alive.
Remove it.

Signed-off-by: Abdun Nihaal <abdun.nihaal@gmail.com>
Link: https://lore.kernel.org/r/17af206986d64f34e85acdf67b138edb4ccc0312.1644422181.git.abdun.nihaal@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c

index 27bfb43f306e29509a7c22b6666caab6685e6927..ceca6751cdee9e59cf6a5f347dd02a3bf05b41ad 100644 (file)
@@ -7157,7 +7157,7 @@ static void _linked_rx_signal_strength_display(struct adapter *padapter)
                   "UndecoratedSmoothedPWDB:%d\n", UndecoratedSmoothedPWDB);
 }
 
-static u8 chk_ap_is_alive(struct adapter *padapter, struct sta_info *psta)
+static u8 chk_ap_is_alive(struct sta_info *psta)
 {
        u8 ret = false;
 
@@ -7221,7 +7221,7 @@ void linked_status_chk(struct adapter *padapter)
                        bool is_p2p_enable = false;
                        is_p2p_enable = !rtw_p2p_chk_state(&padapter->wdinfo, P2P_STATE_NONE);
 
-                       if (!chk_ap_is_alive(padapter, psta))
+                       if (!chk_ap_is_alive(psta))
                                rx_chk = _FAIL;
 
                        if (pxmitpriv->last_tx_pkts == pxmitpriv->tx_pkts)