]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drivers: staging: rtl8723au: Fix '"(foo*)" should be "(foo *)"' errors
authorGreg Donald <gdonald@gmail.com>
Sun, 7 Sep 2014 00:42:03 +0000 (19:42 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 21:02:12 +0000 (14:02 -0700)
Fix checkpatch.pl '"(foo*)" should be "(foo *)"' errors

Signed-off-by: Greg Donald <gdonald@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_ap.c
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/core/rtw_wlan_util.c

index 888abeb89d14ed1c135d61f62dc92de2ee53f8c5..be85b7e43d9152f204951939806cbede62cf7f33 100644 (file)
@@ -143,7 +143,7 @@ static void update_BCNTIM(struct rtw_adapter *padapter)
                *dst_ie++ = 0;
 
        if (tim_ielen == 4) {
-               *dst_ie++ = *(u8*)&tim_bitmap_le;
+               *dst_ie++ = *(u8 *)&tim_bitmap_le;
        } else if (tim_ielen == 5) {
                memcpy(dst_ie, &tim_bitmap_le, 2);
                dst_ie+= 2;
@@ -463,7 +463,8 @@ static void update_bmc_sta(struct rtw_adapter *padapter)
 
                psta->ieee8021x_blocked = 0;
 
-               memset((void*)&psta->sta_stats, 0, sizeof(struct stainfo_stats));
+               memset((void *)&psta->sta_stats, 0,
+                      sizeof(struct stainfo_stats));
 
                /* prepare for add_RATid23a */
                supportRateNum = rtw_get_rateset_len23a((u8*)&pcur_network->SupportedRates);
@@ -599,7 +600,7 @@ void update_sta_info23a_apmode23a(struct rtw_adapter *padapter, struct sta_info
 
        /* todo: init other variables */
 
-       memset((void*)&psta->sta_stats, 0, sizeof(struct stainfo_stats));
+       memset((void *)&psta->sta_stats, 0, sizeof(struct stainfo_stats));
 
        spin_lock_bh(&psta->lock);
        psta->state |= _FW_LINKED;
@@ -1021,7 +1022,7 @@ int rtw_check_beacon_data23a(struct rtw_adapter *padapter,
        pbss_network->Length = get_wlan_bssid_ex_sz(pbss_network);
 
        /* issue beacon to start bss network */
-       start_bss_network(padapter, (u8*)pbss_network);
+       start_bss_network(padapter, (u8 *)pbss_network);
 
        /* alloc sta_info for ap itself */
        psta = rtw_get_stainfo23a(&padapter->stapriv, pbss_network->MacAddress);
@@ -1674,7 +1675,8 @@ u8 ap_free_sta23a(struct rtw_adapter *padapter, struct sta_info *psta, bool acti
 
        /* clear cam entry / key */
        /* clear_cam_entry23a(padapter, (psta->mac_id + 3)); */
-       rtw_clearstakey_cmd23a(padapter, (u8*)psta, (u8)(psta->mac_id + 3), true);
+       rtw_clearstakey_cmd23a(padapter, (u8 *)psta, (u8)(psta->mac_id + 3),
+                              true);
 
        spin_lock_bh(&psta->lock);
        psta->state &= ~_FW_LINKED;
@@ -1829,7 +1831,7 @@ void rtw_ap_restore_network(struct rtw_adapter *padapter)
 
        set_channel_bwmode23a(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
 
-       start_bss_network(padapter, (u8*)&mlmepriv->cur_network.network);
+       start_bss_network(padapter, (u8 *)&mlmepriv->cur_network.network);
 
        if (padapter->securitypriv.dot11PrivacyAlgrthm ==
            WLAN_CIPHER_SUITE_TKIP ||
index 71a08785c0634abac4d0cd4c311598a59cf4eb50..9fd9b10408925c76d60982b905bed231601c5a4b 100644 (file)
@@ -677,7 +677,7 @@ int rtw_setstakey_cmd23a(struct rtw_adapter *padapter, u8 *psta, u8 unicast_key)
        struct set_stakey_rsp *psetstakey_rsp = NULL;
        struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
        struct security_priv *psecuritypriv = &padapter->securitypriv;
-       struct sta_info *sta = (struct sta_info*)psta;
+       struct sta_info *sta = (struct sta_info *)psta;
        int res = _SUCCESS;
 
        ph2c = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL);
@@ -1493,7 +1493,7 @@ void rtw_setstaKey_cmdrsp_callback23a(struct rtw_adapter *padapter,
        struct sta_info *psta;
 
        pstapriv = &padapter->stapriv;
-       psetstakey_rsp = (struct set_stakey_rsp*) (pcmd->rsp);
+       psetstakey_rsp = (struct set_stakey_rsp *) (pcmd->rsp);
        psta = rtw_get_stainfo23a(pstapriv, psetstakey_rsp->addr);
 
        if (!psta) {
@@ -1518,7 +1518,7 @@ void rtw_setassocsta_cmdrsp_callback23a(struct rtw_adapter *padapter,
        struct sta_info *psta;
 
        passocsta_parm = (struct set_assocsta_parm *)(pcmd->parmbuf);
-       passocsta_rsp = (struct set_assocsta_rsp*) (pcmd->rsp);
+       passocsta_rsp = (struct set_assocsta_rsp *) (pcmd->rsp);
        psta = rtw_get_stainfo23a(pstapriv, passocsta_parm->addr);
 
        if (psta == NULL) {
index 57f93f57682dad746ece096ec8bdc5771abf67bf..099ef8ca6aa734e08500c8d9b9647b22655d2f8b 100644 (file)
@@ -1256,7 +1256,7 @@ void rtw_stassoc_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf)
 {
        struct sta_info *psta;
        struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
-       struct stassoc_event *pstassoc = (struct stassoc_event*)pbuf;
+       struct stassoc_event *pstassoc = (struct stassoc_event *)pbuf;
        struct wlan_network *cur_network = &pmlmepriv->cur_network;
        struct wlan_network *ptarget_wlan;
 
@@ -2187,7 +2187,7 @@ bool rtw_restructure_ht_ie23a(struct rtw_adapter *padapter, u8 *in_ie,
 
                pframe = rtw_set_ie23a(out_ie + out_len, WLAN_EID_HT_CAPABILITY,
                                    sizeof(struct ieee80211_ht_cap),
-                                   (unsigned char*)&ht_capie, pout_len);
+                                   (unsigned char *)&ht_capie, pout_len);
 
                phtpriv->ht_option = true;
 
index c5511ea9cf525d33bfcf5f84a53ac94e2e6554a3..23621a833901059f040ef65f6c125d8856ed8980 100644 (file)
@@ -2436,7 +2436,7 @@ void issue_beacon23a(struct rtw_adapter *padapter, int timeout_ms)
                if (wps_ie && wps_ie[1] > 0) {
                        rtw_get_wps_attr_content23a(wps_ie, wps_ie[1],
                                                    WPS_ATTR_SELECTED_REGISTRAR,
-                                                   (u8*)&sr);
+                                                   (u8 *)&sr);
                }
                if (sr != 0)
                        set_fwstate(pmlmepriv, WIFI_UNDER_WPS);
@@ -4763,7 +4763,7 @@ void report_survey_event23a(struct rtw_adapter *padapter,
        pcmd_obj->rsp = NULL;
        pcmd_obj->rspsz  = 0;
 
-       pc2h_evt_hdr = (struct C2HEvent_Header*)(pevtcmd);
+       pc2h_evt_hdr = (struct C2HEvent_Header *)(pevtcmd);
        pc2h_evt_hdr->len = sizeof(struct survey_event);
        pc2h_evt_hdr->ID = GEN_EVT_CODE(_Survey);
        pc2h_evt_hdr->seq = atomic_inc_return(&pmlmeext->event_seq);
@@ -4814,7 +4814,7 @@ void report_surveydone_event23a(struct rtw_adapter *padapter)
        pcmd_obj->rsp = NULL;
        pcmd_obj->rspsz  = 0;
 
-       pc2h_evt_hdr = (struct C2HEvent_Header*)(pevtcmd);
+       pc2h_evt_hdr = (struct C2HEvent_Header *)(pevtcmd);
        pc2h_evt_hdr->len = sizeof(struct surveydone_event);
        pc2h_evt_hdr->ID = GEN_EVT_CODE(_SurveyDone);
        pc2h_evt_hdr->seq = atomic_inc_return(&pmlmeext->event_seq);
@@ -4858,7 +4858,7 @@ void report_join_res23a(struct rtw_adapter *padapter, int res)
        pcmd_obj->rsp = NULL;
        pcmd_obj->rspsz  = 0;
 
-       pc2h_evt_hdr = (struct C2HEvent_Header*)(pevtcmd);
+       pc2h_evt_hdr = (struct C2HEvent_Header *)(pevtcmd);
        pc2h_evt_hdr->len = sizeof(struct joinbss_event);
        pc2h_evt_hdr->ID = GEN_EVT_CODE(_JoinBss);
        pc2h_evt_hdr->seq = atomic_inc_return(&pmlmeext->event_seq);
@@ -4908,7 +4908,7 @@ void report_del_sta_event23a(struct rtw_adapter *padapter,
        pcmd_obj->rsp = NULL;
        pcmd_obj->rspsz  = 0;
 
-       pc2h_evt_hdr = (struct C2HEvent_Header*)(pevtcmd);
+       pc2h_evt_hdr = (struct C2HEvent_Header *)(pevtcmd);
        pc2h_evt_hdr->len = sizeof(struct stadel_event);
        pc2h_evt_hdr->ID = GEN_EVT_CODE(_DelSTA);
        pc2h_evt_hdr->seq = atomic_inc_return(&pmlmeext->event_seq);
@@ -4962,7 +4962,7 @@ void report_add_sta_event23a(struct rtw_adapter *padapter,
        pcmd_obj->rsp = NULL;
        pcmd_obj->rspsz  = 0;
 
-       pc2h_evt_hdr = (struct C2HEvent_Header*)(pevtcmd);
+       pc2h_evt_hdr = (struct C2HEvent_Header *)(pevtcmd);
        pc2h_evt_hdr->len = sizeof(struct stassoc_event);
        pc2h_evt_hdr->ID = GEN_EVT_CODE(_AddSTA);
        pc2h_evt_hdr->seq = atomic_inc_return(&pmlmeext->event_seq);
index 32f360301c773e8cb424a0c92e14468c343c24eb..bc587b3e3b179ba4d2be4919656678499c029e8e 100644 (file)
@@ -1537,7 +1537,7 @@ void process_addba_req23a(struct rtw_adapter *padapter,
        u16 tid, start_seq, param;
        struct recv_reorder_ctrl *preorder_ctrl;
        struct sta_priv *pstapriv = &padapter->stapriv;
-       struct ADDBA_request *preq = (struct ADDBA_request*)paddba_req;
+       struct ADDBA_request *preq = (struct ADDBA_request *)paddba_req;
        struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
        struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;