staging: rtl8723au: Remove unused list_head from struct cmd_obj
authorJes Sorensen <Jes.Sorensen@redhat.com>
Sat, 26 Apr 2014 16:55:03 +0000 (18:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Apr 2014 17:16:14 +0000 (10:16 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_cmd.c
drivers/staging/rtl8723au/core/rtw_mlme.c
drivers/staging/rtl8723au/core/rtw_mlme_ext.c
drivers/staging/rtl8723au/include/rtw_cmd.h
drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c

index a2b733c3802f3c943cc8285e1734261784c5cb2f..50476fa40bd3468c4a8b53cc9b7700461c7da130 100644 (file)
@@ -514,7 +514,6 @@ u8 rtw_createbss_cmd23a(struct rtw_adapter  *padapter)
                goto exit;
        }
 
-       INIT_LIST_HEAD(&pcmd->list);
        pcmd->cmdcode = _CreateBss_CMD_;
        pcmd->parmbuf = (unsigned char *)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,
        /* get cmdsz before endian conversion */
        pcmd->cmdsz = get_wlan_bssid_ex_sz(psecnetwork);
 
-       INIT_LIST_HEAD(&pcmd->list);
        pcmd->cmdcode = _JoinBss_CMD_;/* GEN_CMD_CODE(_JoinBss) */
        pcmd->parmbuf = (unsigned char *)psecnetwork;
        pcmd->rsp = NULL;
index 4d21d623070ee19cbd28fba3f2a5d414b1e7f905..97f1706fd3cba9d5a9cf6afc26423db19bdd4651 100644 (file)
@@ -1908,8 +1908,6 @@ int rtw_set_auth23a(struct rtw_adapter * adapter,
        pcmd->rsp = NULL;
        pcmd->rspsz = 0;
 
-       INIT_LIST_HEAD(&pcmd->list);
-
        RT_TRACE(_module_rtl871x_mlme_c_,_drv_err_,
                 ("after enqueue set_auth_cmd, auth_mode=%x\n",
                  psecuritypriv->dot11AuthAlgrthm));
@@ -2009,8 +2007,6 @@ int rtw_set_key23a(struct rtw_adapter *adapter,
        pcmd->rsp = NULL;
        pcmd->rspsz = 0;
 
-       INIT_LIST_HEAD(&pcmd->list);
-
        /* sema_init(&pcmd->cmd_sem, 0); */
 
        res = rtw_enqueue_cmd23a(pcmdpriv, pcmd);
index 00a7a63f960c7ef9ce8d6e1a58155e9ecda0d6cb..ff558808a4569a4869936285685dac8aa3aee93b 100644 (file)
@@ -5097,8 +5097,6 @@ void report_survey_event23a(struct rtw_adapter *padapter, struct recv_frame *pre
                return;
        }
 
-       INIT_LIST_HEAD(&pcmd_obj->list);
-
        pcmd_obj->cmdcode = GEN_CMD_CODE(_Set_MLME_EVT);
        pcmd_obj->cmdsz = cmdsz;
        pcmd_obj->parmbuf = pevtcmd;
@@ -5150,8 +5148,6 @@ void report_surveydone_event23a(struct rtw_adapter *padapter)
                return;
        }
 
-       INIT_LIST_HEAD(&pcmd_obj->list);
-
        pcmd_obj->cmdcode = GEN_CMD_CODE(_Set_MLME_EVT);
        pcmd_obj->cmdsz = cmdsz;
        pcmd_obj->parmbuf = pevtcmd;
@@ -5197,8 +5193,6 @@ void report_join_res23a(struct rtw_adapter *padapter, int res)
                return;
        }
 
-       INIT_LIST_HEAD(&pcmd_obj->list);
-
        pcmd_obj->cmdcode = GEN_CMD_CODE(_Set_MLME_EVT);
        pcmd_obj->cmdsz = cmdsz;
        pcmd_obj->parmbuf = pevtcmd;
@@ -5249,8 +5243,6 @@ void report_del_sta_event23a(struct rtw_adapter *padapter, unsigned char* MacAdd
                return;
        }
 
-       INIT_LIST_HEAD(&pcmd_obj->list);
-
        pcmd_obj->cmdcode = GEN_CMD_CODE(_Set_MLME_EVT);
        pcmd_obj->cmdsz = cmdsz;
        pcmd_obj->parmbuf = pevtcmd;
@@ -5305,8 +5297,6 @@ void report_add_sta_event23a(struct rtw_adapter *padapter, unsigned char* MacAdd
                return;
        }
 
-       INIT_LIST_HEAD(&pcmd_obj->list);
-
        pcmd_obj->cmdcode = GEN_CMD_CODE(_Set_MLME_EVT);
        pcmd_obj->cmdsz = cmdsz;
        pcmd_obj->parmbuf = pevtcmd;
index 8f2b9a4ea7291da1a41726265786c5ee841bd980..85a6fcaef4205c972dcf2958309c7b831c226620 100644 (file)
@@ -42,7 +42,6 @@ struct cmd_obj {
        u32     cmdsz;
        u8      *rsp;
        u32     rspsz;
-       struct list_head        list;
 };
 
 struct cmd_priv {
@@ -72,7 +71,6 @@ struct        evt_priv {
 
 #define init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code) \
 do {\
-       INIT_LIST_HEAD(&pcmd->list);\
        pcmd->cmdcode = code;\
        pcmd->parmbuf = (u8 *)(pparm);\
        pcmd->cmdsz = sizeof (*pparm);\
index 0866ab59a399fb2e231af1d8e2ffbd5bc31638eb..221d15205b1e84deae096c279f5f86a32b2e7d4e 100644 (file)
@@ -522,8 +522,6 @@ static int set_group_key(struct rtw_adapter *padapter, u8 *key, u8 alg,
        pcmd->rsp = NULL;
        pcmd->rspsz = 0;
 
-       INIT_LIST_HEAD(&pcmd->list);
-
        res = rtw_enqueue_cmd23a(pcmdpriv, pcmd);
 
 exit: