Commit faf42766 authored by navin patidar's avatar navin patidar Committed by Greg Kroah-Hartman

staging: rtl8188eu: Remove cmd_seq from struct cmd_priv

Value stored in cmd_seq isn't used by driver.
Signed-off-by: default avatarnavin patidar <navin.patidar@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ffca5747
...@@ -36,8 +36,6 @@ int rtw_init_cmd_priv(struct cmd_priv *pcmdpriv) ...@@ -36,8 +36,6 @@ int rtw_init_cmd_priv(struct cmd_priv *pcmdpriv)
sema_init(&(pcmdpriv->terminate_cmdthread_sema), 0); sema_init(&(pcmdpriv->terminate_cmdthread_sema), 0);
_rtw_init_queue(&(pcmdpriv->cmd_queue)); _rtw_init_queue(&(pcmdpriv->cmd_queue));
pcmdpriv->cmd_seq = 1;
return _SUCCESS; return _SUCCESS;
} }
...@@ -217,8 +215,6 @@ int rtw_cmd_thread(void *context) ...@@ -217,8 +215,6 @@ int rtw_cmd_thread(void *context)
ret = cmd_hdl(pcmd->padapter, pcmd->parmbuf); ret = cmd_hdl(pcmd->padapter, pcmd->parmbuf);
pcmd->res = ret; pcmd->res = ret;
} }
pcmdpriv->cmd_seq++;
} else { } else {
pcmd->res = H2C_PARAMETERS_ERROR; pcmd->res = H2C_PARAMETERS_ERROR;
} }
......
...@@ -47,7 +47,6 @@ struct cmd_priv { ...@@ -47,7 +47,6 @@ struct cmd_priv {
struct semaphore cmd_queue_sema; struct semaphore cmd_queue_sema;
struct semaphore terminate_cmdthread_sema; struct semaphore terminate_cmdthread_sema;
struct __queue cmd_queue; struct __queue cmd_queue;
u8 cmd_seq;
u8 cmdthd_running; u8 cmdthd_running;
struct adapter *padapter; struct adapter *padapter;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment