staging: r8188eu: cnt is set but not used
authorMartin Kaiser <martin@kaiser.cx>
Sat, 26 Feb 2022 18:14:54 +0000 (19:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Mar 2022 21:33:37 +0000 (22:33 +0100)
In function recv_func, the cnt variable is set but not used.
It can be removed.

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

index c987890..6dacb26 100644 (file)
@@ -1798,12 +1798,9 @@ static int recv_func(struct adapter *padapter, struct recv_frame *rframe)
        if (check_fwstate(mlmepriv, WIFI_STATION_STATE) &&
            psecuritypriv->busetkipkey) {
                struct recv_frame *pending_frame;
-               int cnt = 0;
 
-               while ((pending_frame = rtw_alloc_recvframe(&padapter->recvpriv.uc_swdec_pending_queue))) {
-                       cnt++;
+               while ((pending_frame = rtw_alloc_recvframe(&padapter->recvpriv.uc_swdec_pending_queue)))
                        recv_func_posthandle(padapter, pending_frame);
-               }
        }
 
        ret = recv_func_prehandle(padapter, rframe);