From: navin patidar Date: Thu, 10 Jul 2014 03:42:14 +0000 (+0530) Subject: staging: rtl8188eu: Remove cmd_seq from struct cmd_priv X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=faf427665d1e693f030d314b624b10f5724018ad;p=openwrt%2Fstaging%2Fblogic.git staging: rtl8188eu: Remove cmd_seq from struct cmd_priv Value stored in cmd_seq isn't used by driver. Signed-off-by: navin patidar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/core/rtw_cmd.c b/drivers/staging/rtl8188eu/core/rtw_cmd.c index 08980eceae02..07c1e3ddf9ba 100644 --- a/drivers/staging/rtl8188eu/core/rtw_cmd.c +++ b/drivers/staging/rtl8188eu/core/rtw_cmd.c @@ -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; } diff --git a/drivers/staging/rtl8188eu/include/rtw_cmd.h b/drivers/staging/rtl8188eu/include/rtw_cmd.h index bad84b2fed10..e59d6d401a3c 100644 --- a/drivers/staging/rtl8188eu/include/rtw_cmd.h +++ b/drivers/staging/rtl8188eu/include/rtw_cmd.h @@ -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; };