staging: r8188eu: cmd_issued_cnt is set but not used
authorMartin Kaiser <martin@kaiser.cx>
Sun, 2 Jan 2022 17:59:31 +0000 (18:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Jan 2022 13:31:20 +0000 (14:31 +0100)
cmd_issued_cnt in struct cmd_priv is set but not used. It can
be removed.

Acked-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220102175932.89127-5-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_cmd.c
drivers/staging/r8188eu/include/rtw_cmd.h

index 6d503eb..8bfb01c 100644 (file)
@@ -50,7 +50,6 @@ static int _rtw_init_cmd_priv(struct cmd_priv *pcmdpriv)
 
        pcmdpriv->rsp_buf = pcmdpriv->rsp_allocated_buf  +  4 - ((size_t)(pcmdpriv->rsp_allocated_buf) & 3);
 
-       pcmdpriv->cmd_issued_cnt = 0;
        pcmdpriv->cmd_done_cnt = 0;
        pcmdpriv->rsp_cnt = 0;
 exit:
@@ -269,8 +268,6 @@ _next:
                        goto post_process;
                }
 
-               pcmdpriv->cmd_issued_cnt++;
-
                pcmd->cmdsz = _RND4((pcmd->cmdsz));/* _RND4 */
 
                memcpy(pcmdbuf, pcmd->parmbuf, pcmd->cmdsz);
index 47c3c80..cf0945a 100644 (file)
@@ -42,7 +42,6 @@ struct cmd_priv {
        u8      *cmd_allocated_buf;
        u8      *rsp_buf;       /* shall be non-paged, and 4 bytes aligned */
        u8      *rsp_allocated_buf;
-       u32     cmd_issued_cnt;
        u32     cmd_done_cnt;
        u32     rsp_cnt;
        u8 cmdthd_running;