staging: rtl8188eu: Remove cmd_seq from struct cmd_priv
authornavin patidar <navin.patidar@gmail.com>
Thu, 10 Jul 2014 03:42:14 +0000 (09:12 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 04:15:20 +0000 (21:15 -0700)
Value stored in cmd_seq isn't used by driver.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_cmd.c
drivers/staging/rtl8188eu/include/rtw_cmd.h

index 08980eceae028cefd2ed72ad367603b739144f4b..07c1e3ddf9ba742b164be79cb3fca75eaec19ef1 100644 (file)
@@ -36,8 +36,6 @@ int rtw_init_cmd_priv(struct cmd_priv *pcmdpriv)
        sema_init(&(pcmdpriv->terminate_cmdthread_sema), 0);
 
        _rtw_init_queue(&(pcmdpriv->cmd_queue));
-
-       pcmdpriv->cmd_seq = 1;
        return _SUCCESS;
 }
 
@@ -217,8 +215,6 @@ _next:
                                ret = cmd_hdl(pcmd->padapter, pcmd->parmbuf);
                                pcmd->res = ret;
                        }
-
-                       pcmdpriv->cmd_seq++;
                } else {
                        pcmd->res = H2C_PARAMETERS_ERROR;
                }
index bad84b2fed1014e218756dc5413393f435159538..e59d6d401a3cc341f7b9b01959c8fdc501844663 100644 (file)
@@ -47,7 +47,6 @@ struct cmd_priv {
        struct semaphore cmd_queue_sema;
        struct semaphore terminate_cmdthread_sema;
        struct __queue cmd_queue;
-       u8      cmd_seq;
        u8 cmdthd_running;
        struct adapter *padapter;
 };