[PATCH 02/10] staging: r8188eu: remove unnecessary rtw_get_passing_time_ms call

From: Martin Kaiser
Date: Sat Apr 09 2022 - 12:32:39 EST


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@xxxxxxxxx>
---
drivers/staging/r8188eu/core/rtw_mlme_ext.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c
index babadfc279bc..d85f2182b816 100644
--- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c
+++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c
@@ -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;
}

--
2.30.2