staging: r8188eu: remove unnecessary rtw_get_passing_time_ms call
authorMartin Kaiser <martin@kaiser.cx>
Sat, 9 Apr 2022 16:32:04 +0000 (18:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2022 13:49:58 +0000 (15:49 +0200)
Remove the rtw_get_passing_time_ms call in send_beacon.

Calling rtw_get_passing_time_ms makes no sense if we discard the result.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220409163212.241122-3-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c

index d096056..9fc4f18 100644 (file)
@@ -5751,8 +5751,6 @@ unsigned int send_beacon(struct adapter *padapter)
        int     issue = 0;
        int poll = 0;
 
-       u32 start = jiffies;
-
        clear_beacon_valid_bit(padapter);
 
        do {
@@ -5770,7 +5768,6 @@ unsigned int send_beacon(struct adapter *padapter)
        if (!bxmitok)
                return _FAIL;
 
-       rtw_get_passing_time_ms(start);
        return _SUCCESS;
 }