Commit 9e8ccf78 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: Remove unused list_head from struct cmd_obj

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b1d49bd4
...@@ -514,7 +514,6 @@ u8 rtw_createbss_cmd23a(struct rtw_adapter *padapter) ...@@ -514,7 +514,6 @@ u8 rtw_createbss_cmd23a(struct rtw_adapter *padapter)
goto exit; goto exit;
} }
INIT_LIST_HEAD(&pcmd->list);
pcmd->cmdcode = _CreateBss_CMD_; pcmd->cmdcode = _CreateBss_CMD_;
pcmd->parmbuf = (unsigned char *)pdev_network; pcmd->parmbuf = (unsigned char *)pdev_network;
pcmd->cmdsz = get_wlan_bssid_ex_sz((struct wlan_bssid_ex*)pdev_network); pcmd->cmdsz = get_wlan_bssid_ex_sz((struct wlan_bssid_ex*)pdev_network);
...@@ -688,7 +687,6 @@ u8 rtw_joinbss_cmd23a(struct rtw_adapter *padapter, ...@@ -688,7 +687,6 @@ u8 rtw_joinbss_cmd23a(struct rtw_adapter *padapter,
/* get cmdsz before endian conversion */ /* get cmdsz before endian conversion */
pcmd->cmdsz = get_wlan_bssid_ex_sz(psecnetwork); pcmd->cmdsz = get_wlan_bssid_ex_sz(psecnetwork);
INIT_LIST_HEAD(&pcmd->list);
pcmd->cmdcode = _JoinBss_CMD_;/* GEN_CMD_CODE(_JoinBss) */ pcmd->cmdcode = _JoinBss_CMD_;/* GEN_CMD_CODE(_JoinBss) */
pcmd->parmbuf = (unsigned char *)psecnetwork; pcmd->parmbuf = (unsigned char *)psecnetwork;
pcmd->rsp = NULL; pcmd->rsp = NULL;
......
...@@ -1908,8 +1908,6 @@ int rtw_set_auth23a(struct rtw_adapter * adapter, ...@@ -1908,8 +1908,6 @@ int rtw_set_auth23a(struct rtw_adapter * adapter,
pcmd->rsp = NULL; pcmd->rsp = NULL;
pcmd->rspsz = 0; pcmd->rspsz = 0;
INIT_LIST_HEAD(&pcmd->list);
RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_, RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,
("after enqueue set_auth_cmd, auth_mode=%x\n", ("after enqueue set_auth_cmd, auth_mode=%x\n",
psecuritypriv->dot11AuthAlgrthm)); psecuritypriv->dot11AuthAlgrthm));
...@@ -2009,8 +2007,6 @@ int rtw_set_key23a(struct rtw_adapter *adapter, ...@@ -2009,8 +2007,6 @@ int rtw_set_key23a(struct rtw_adapter *adapter,
pcmd->rsp = NULL; pcmd->rsp = NULL;
pcmd->rspsz = 0; pcmd->rspsz = 0;
INIT_LIST_HEAD(&pcmd->list);
/* sema_init(&pcmd->cmd_sem, 0); */ /* sema_init(&pcmd->cmd_sem, 0); */
res = rtw_enqueue_cmd23a(pcmdpriv, pcmd); res = rtw_enqueue_cmd23a(pcmdpriv, pcmd);
......
...@@ -5097,8 +5097,6 @@ void report_survey_event23a(struct rtw_adapter *padapter, struct recv_frame *pre ...@@ -5097,8 +5097,6 @@ void report_survey_event23a(struct rtw_adapter *padapter, struct recv_frame *pre
return; return;
} }
INIT_LIST_HEAD(&pcmd_obj->list);
pcmd_obj->cmdcode = GEN_CMD_CODE(_Set_MLME_EVT); pcmd_obj->cmdcode = GEN_CMD_CODE(_Set_MLME_EVT);
pcmd_obj->cmdsz = cmdsz; pcmd_obj->cmdsz = cmdsz;
pcmd_obj->parmbuf = pevtcmd; pcmd_obj->parmbuf = pevtcmd;
...@@ -5150,8 +5148,6 @@ void report_surveydone_event23a(struct rtw_adapter *padapter) ...@@ -5150,8 +5148,6 @@ void report_surveydone_event23a(struct rtw_adapter *padapter)
return; return;
} }
INIT_LIST_HEAD(&pcmd_obj->list);
pcmd_obj->cmdcode = GEN_CMD_CODE(_Set_MLME_EVT); pcmd_obj->cmdcode = GEN_CMD_CODE(_Set_MLME_EVT);
pcmd_obj->cmdsz = cmdsz; pcmd_obj->cmdsz = cmdsz;
pcmd_obj->parmbuf = pevtcmd; pcmd_obj->parmbuf = pevtcmd;
...@@ -5197,8 +5193,6 @@ void report_join_res23a(struct rtw_adapter *padapter, int res) ...@@ -5197,8 +5193,6 @@ void report_join_res23a(struct rtw_adapter *padapter, int res)
return; return;
} }
INIT_LIST_HEAD(&pcmd_obj->list);
pcmd_obj->cmdcode = GEN_CMD_CODE(_Set_MLME_EVT); pcmd_obj->cmdcode = GEN_CMD_CODE(_Set_MLME_EVT);
pcmd_obj->cmdsz = cmdsz; pcmd_obj->cmdsz = cmdsz;
pcmd_obj->parmbuf = pevtcmd; pcmd_obj->parmbuf = pevtcmd;
...@@ -5249,8 +5243,6 @@ void report_del_sta_event23a(struct rtw_adapter *padapter, unsigned char* MacAdd ...@@ -5249,8 +5243,6 @@ void report_del_sta_event23a(struct rtw_adapter *padapter, unsigned char* MacAdd
return; return;
} }
INIT_LIST_HEAD(&pcmd_obj->list);
pcmd_obj->cmdcode = GEN_CMD_CODE(_Set_MLME_EVT); pcmd_obj->cmdcode = GEN_CMD_CODE(_Set_MLME_EVT);
pcmd_obj->cmdsz = cmdsz; pcmd_obj->cmdsz = cmdsz;
pcmd_obj->parmbuf = pevtcmd; pcmd_obj->parmbuf = pevtcmd;
...@@ -5305,8 +5297,6 @@ void report_add_sta_event23a(struct rtw_adapter *padapter, unsigned char* MacAdd ...@@ -5305,8 +5297,6 @@ void report_add_sta_event23a(struct rtw_adapter *padapter, unsigned char* MacAdd
return; return;
} }
INIT_LIST_HEAD(&pcmd_obj->list);
pcmd_obj->cmdcode = GEN_CMD_CODE(_Set_MLME_EVT); pcmd_obj->cmdcode = GEN_CMD_CODE(_Set_MLME_EVT);
pcmd_obj->cmdsz = cmdsz; pcmd_obj->cmdsz = cmdsz;
pcmd_obj->parmbuf = pevtcmd; pcmd_obj->parmbuf = pevtcmd;
......
...@@ -42,7 +42,6 @@ struct cmd_obj { ...@@ -42,7 +42,6 @@ struct cmd_obj {
u32 cmdsz; u32 cmdsz;
u8 *rsp; u8 *rsp;
u32 rspsz; u32 rspsz;
struct list_head list;
}; };
struct cmd_priv { struct cmd_priv {
...@@ -72,7 +71,6 @@ struct evt_priv { ...@@ -72,7 +71,6 @@ struct evt_priv {
#define init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code) \ #define init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code) \
do {\ do {\
INIT_LIST_HEAD(&pcmd->list);\
pcmd->cmdcode = code;\ pcmd->cmdcode = code;\
pcmd->parmbuf = (u8 *)(pparm);\ pcmd->parmbuf = (u8 *)(pparm);\
pcmd->cmdsz = sizeof (*pparm);\ pcmd->cmdsz = sizeof (*pparm);\
......
...@@ -522,8 +522,6 @@ static int set_group_key(struct rtw_adapter *padapter, u8 *key, u8 alg, ...@@ -522,8 +522,6 @@ static int set_group_key(struct rtw_adapter *padapter, u8 *key, u8 alg,
pcmd->rsp = NULL; pcmd->rsp = NULL;
pcmd->rspsz = 0; pcmd->rspsz = 0;
INIT_LIST_HEAD(&pcmd->list);
res = rtw_enqueue_cmd23a(pcmdpriv, pcmd); res = rtw_enqueue_cmd23a(pcmdpriv, pcmd);
exit: exit:
......
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