staging: rtl8723bs: delete empty comment lines in core/ files
PATCH 1/1 staging: rtl8723bs: delete empty comment lines in core/ files
Delete all empty comment lines /* */ in core/ source files, as they are not serving any purpose.
Signed-off-by Jennifer Guo <[email protected]>
--- drivers/staging/rtl8723bs/core/rtw_ap.c | 2 -- drivers/staging/rtl8723bs/core/rtw_cmd.c | 4 ---- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 2 -- drivers/staging/rtl8723bs/core/rtw_mlme.c | 12 +----------- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 3 --- drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 2 -- drivers/staging/rtl8723bs/core/rtw_recv.c | 5 ----- 7 files changed, 1 insertion(+), 29 deletions(-)
drivers/staging/rtl8723bs/core/rtw_ap.c +0 -2
@@ -598,9 +598,7 @@ static void update_hw_ht_param(struct adapter *padapter)rtw_hal_set_hwreg (padapter,HW_VAR_AMPDU_FACTOR , (u8 *)(&max_AMPDU_len)); -/* */ /* Config SM Power Save setting */ -/* */ pmlmeinfo->SM_PS = (le16_to_cpu (pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info) &0x0C ) >>2 ;
drivers/staging/rtl8723bs/core/rtw_cmd.c +0 -4
@@ -1147,9 +1147,7 @@ bool traffic_status_watchdog(struct adapter *padapter, bool from_timer)collect_traffic_statistics (padapter); -/* */ /* Determine if our traffic is busy now */ -/* */ if ((check_fwstate (pmlmepriv, _FW_LINKED))/*&& !MgntInitAdapterInProgress(pMgntInfo)*/ ) {/* if we raise busy_traffic in last watchdog, using lower threshold. */
@@ -1258,9 +1256,7 @@ static void dynamic_chk_wk_hdl(struct adapter *padapter)/* check_hw_pbc(padapter, pdrvextra_cmd->pbuf, pdrvextra_cmd->type); */ -/* */ /* BT-Coexist */ -/* */ hal_btcoex_Handler (padapter);/* always call rtw_ps_processor() at last one. */
drivers/staging/rtl8723bs/core/rtw_ieee80211.c +0 -2
@@ -31,9 +31,7 @@ u8 RSN_CIPHER_SUITE_TKIP[] = { 0x00, 0x0f, 0xac, 2 };u8 RSN_CIPHER_SUITE_WRAP [] = {0x00 ,0x0f ,0xac ,3 };u8 RSN_CIPHER_SUITE_CCMP [] = {0x00 ,0x0f ,0xac ,4 };u8 RSN_CIPHER_SUITE_WEP104 [] = {0x00 ,0x0f ,0xac ,5 }; -/* */ /* for adhoc-master to generate ie and provide supported-rate to fw */ -/* */ static u8 WIFI_CCKRATES [] = { (IEEE80211_CCK_RATE_1MB |IEEE80211_BASIC_RATE_MASK ),
drivers/staging/rtl8723bs/core/rtw_mlme.c +1 -11
@@ -1094,7 +1094,6 @@ void rtw_reset_securitypriv(struct adapter *adapter)/* 802.1x */ /* Added by Albert 2009/02/18 */ /* We have to backup the PMK information for WiFi PMK Caching test item. */ -/* */ /* Backup the btkip_countermeasure information. */ /* When the countermeasure is trigger, the driver have to disconnect with AP for 60 seconds. */
@@ -1121,7 +1120,6 @@ void rtw_reset_securitypriv(struct adapter *adapter) }else {/* reset values in securitypriv */ /* if (adapter->mlmepriv.fw_state & WIFI_STATION_STATE) */ -/* */ struct security_priv *psec_priv = &adapter->securitypriv; psec_priv->dot11_auth_algrthm = dot11_auth_algrthm_open;/* open system */
@@ -1133,7 +1131,6 @@ void rtw_reset_securitypriv(struct adapter *adapter) psec_priv->ndisauthtype = Ndis802_11AuthModeOpen; psec_priv->ndisencryptstatus = Ndis802_11WEPDisabled; -/* */ }spin_unlock_bh (&adapter->security_key_mutex); }
@@ -1144,7 +1141,6 @@ void rtw_reset_securitypriv(struct adapter *adapter)/* if join_res > 0, for (fw_state ==WIFI_STATION_STATE), we check if "ptarget_sta" & "ptarget_wlan" exist. */ /* if join_res > 0, for (fw_state ==WIFI_ADHOC_STATE), we only check if "ptarget_wlan" exist. */ /* if join_res > 0, update "cur_network->network" from "pnetwork->network" if (ptarget_wlan != NULL). */ -/* */ void rtw_joinbss_event_prehandle (struct adapter *adapter,u8 *buf) {struct sta_info *ptarget_sta =NULL , *pcur_sta =NULL ;
@@ -1530,7 +1526,7 @@ void _rtw_join_timeout_handler(struct timer_list *t) }else {rtw_indicate_disconnect (adapter); -free_scanqueue (mlme_priv);/* */ +free_scanqueue (mlme_priv);/* indicate disconnect for the case that join_timeout and check_fwstate != FW_LINKED */ rtw_cfg80211_indicate_disconnect (adapter);
@@ -2008,13 +2004,11 @@ static int SecIsInPMKIDList(struct adapter *Adapter, u8 *bssid)return -1 ; } -/* */ /* Check the RSN IE length */ /* If the RSN IE length <= 20, the RSN IE didn't include the PMKID information */ /* 0-11th element in the array are the fixed IE */ /* 12th element in the array is the IE */ /* 13th element in the array is the IE length */ -/* */ static int rtw_append_pmkid (struct adapter *Adapter,int pmkid_idx,u8 *ie,uint ie_len) {
@@ -2447,16 +2441,12 @@ void rtw_update_ht_cap(struct adapter *adapter, u8 *pie, uint ie_len, u8 channel } } -/* */ /* Config SM Power Save setting */ -/* */ pmlmeinfo->SM_PS = (le16_to_cpu (pmlmeinfo->HT_caps.u.HT_cap_element.HT_caps_info) &0x0C ) >>2 ; -/* */ /* Config current HT Protection mode. */ -/* */ pmlmeinfo->HT_protection = pmlmeinfo->HT_info.infos[1 ] &0x3 ; }
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +0 -3
@@ -2803,7 +2803,6 @@ void issue_assocreq(struct adapter *padapter) sta_bssrate_len =4 ;/* for (i = 0; i < sta_bssrate_len; i++) { */ -/* */ for (i =0 ; i <NDIS_802_11_LENGTH_RATES_EX ; i++) {if (pmlmeinfo->network.supported_rates[i] ==0 )
@@ -3529,7 +3528,6 @@ static void issue_action_BSSCoexistPacket(struct adapter *padapter) pframe =rtw_set_fixed_ie (pframe,1 , &(category), &(pattrib->pktlen)); pframe =rtw_set_fixed_ie (pframe,1 , &(action), &(pattrib->pktlen)); -/* */ if (pmlmepriv->num_FortyMHzIntolerant >0 ) {u8 iedata =0 ;
@@ -3538,7 +3536,6 @@ static void issue_action_BSSCoexistPacket(struct adapter *padapter) pframe =rtw_set_ie (pframe,WLAN_EID_BSS_COEX_2040 ,1 , &iedata, &(pattrib->pktlen)); } -/* */ memset (ICS ,0 ,sizeof (ICS ));if (pmlmepriv->num_sta_no_ht >0 ) {int i;
drivers/staging/rtl8723bs/core/rtw_pwrctrl.c +0 -2
@@ -501,10 +501,8 @@ void LeaveAllPowerSaveModeDirect(struct adapter *Adapter) } } -/* */ /* Description: Leave all power save mode: LPS, FwLPS, IPS if needed. */ /* Move code to function by tynli. 2010.03.26. */ -/* */ void LeaveAllPowerSaveMode (struct adapter *Adapter) {struct dvobj_priv *dvobj =adapter_to_dvobj (Adapter);
drivers/staging/rtl8723bs/core/rtw_recv.c +0 -5
@@ -831,7 +831,6 @@ static signed int ap2sta_data_frame(struct adapter *adapter, union recv_frame *pmemcpy (pattrib->ra, pattrib->dst,ETH_ALEN );memcpy (pattrib->ta, pattrib->src,ETH_ALEN ); -/* */ memcpy (pattrib->bssid, mybssid,ETH_ALEN ); *psta =rtw_get_stainfo (pstapriv, pattrib->bssid);/* get sta_info */
@@ -1746,11 +1745,9 @@ static int check_indicate_seq(struct recv_reorder_ctrl *preorder_ctrl, u16 seq_nif (SN_LESS (seq_num, preorder_ctrl->indicate_seq))return false; -/* */ /* Sliding window manipulation. Conditions includes: */ /* 1. Incoming SeqNum is equal to WinStart =>Window shift 1 */ /* 2. Incoming SeqNum is larger than the WinEnd => Window shift N */ -/* */ if (SN_EQUAL (seq_num, preorder_ctrl->indicate_seq)) { preorder_ctrl->indicate_seq = (preorder_ctrl->indicate_seq +1 ) %4096u ;
@@ -1980,11 +1977,9 @@ static int recv_indicatepkt_reorder(struct adapter *padapter, union recv_frame */* Indication process. */ /* After Packet dropping and Sliding Window shifting as above, we can now just indicate the packets */ /* with the SeqNum smaller than latest WinStart and buffer other packets. */ -/* */ /* For Rx Reorder condition: */ /* 1. All packets with SeqNum smaller than WinStart => Indicate */ /* 2. All packets with SeqNum larger than or equal to WinStart => Buffer it. */ -/* */ /* recv_indicatepkts_in_order(padapter, preorder_ctrl, true); */ if (recv_indicatepkts_in_order (padapter, preorder_ctrl, false)) {
Signature · 1 line
2.34.1