staging: rtl8723bs: remove multiple blank lines in core/
PATCH 1/1 staging: rtl8723bs: remove multiple blank lines in core/
Remove multiple consecutive blank lines.
Issue reported by checkpatch.pl
Signed-off-by Mohammed Rizwan Kaniyate <[email protected]>
--- drivers/staging/rtl8723bs/core/rtw_btcoex.c | 1 - drivers/staging/rtl8723bs/core/rtw_efuse.c | 1 - .../staging/rtl8723bs/core/rtw_ioctl_set.c | 1 - drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 48 ------------------- drivers/staging/rtl8723bs/core/rtw_recv.c | 25 ---------- .../staging/rtl8723bs/core/rtw_wlan_util.c | 1 - 6 files changed, 77 deletions(-)
drivers/staging/rtl8723bs/core/rtw_btcoex.c +0 -1
@@ -65,7 +65,6 @@ void rtw_btcoex_LPS_Leave(struct adapter *padapter) {struct pwrctrl_priv *pwrpriv; - pwrpriv =adapter_to_pwrctl (padapter);if (pwrpriv->pwr_mode !=PS_MODE_ACTIVE ) {
drivers/staging/rtl8723bs/core/rtw_efuse.c +0 -1
@@ -232,7 +232,6 @@ void EFUSE_ShadowMapUpdate(struct adapter *padapter, u8 efuseType)/* void *)&pHalData->EfuseMap[EFUSE_INIT_MAP][0], mapLen); */ }/* EFUSE_ShadowMapUpdate */ -/*----------------------------------------------------------------------------- * Function: EFUSE_ShadowRead *
drivers/staging/rtl8723bs/core/rtw_ioctl_set.c +0 -1
@@ -340,7 +340,6 @@ u8 rtw_set_802_11_infrastructure_mode(struct adapter *padapter,return true; } -u8 rtw_set_802_11_disassociate (struct adapter *padapter) {struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +0 -48
323 lines not on this page · raw message
drivers/staging/rtl8723bs/core/rtw_recv.c +0 -25
@@ -60,7 +60,6 @@ signed int _rtw_init_recv_priv(struct recv_priv *precvpriv, struct adapter *pada precvframe = (union recv_frame *) precvpriv->precv_frame_buf; -for (i =0 ; i <NR_RECVFRAME ; i++) {INIT_LIST_HEAD (&(precvframe->u.list));
@@ -180,9 +179,6 @@ int rtw_free_recvframe(union recv_frame *precvframe, struct __queue *pfree_recv_return _SUCCESS; } - - -signed int _rtw_enqueue_recvframe (union recv_frame *precvframe,struct __queue *queue) {
@@ -192,7 +188,6 @@ signed int _rtw_enqueue_recvframe(union recv_frame *precvframe, struct __queue */* INIT_LIST_HEAD(&(precvframe->u.hdr.list)); */ list_del_init (&(precvframe->u.hdr.list)); -list_add_tail (&(precvframe->u.hdr.list),get_list_head (queue));if (padapter)
@@ -257,7 +252,6 @@ u32 rtw_free_uc_swdec_pending_queue(struct adapter *adapter)return cnt; } -signed int rtw_enqueue_recvbuf_to_head (struct recv_buf *precvbuf,struct __queue *queue) {spin_lock_bh (&queue->lock);
@@ -405,7 +399,6 @@ static signed int recvframe_chkmic(struct adapter *adapter, union recv_frame *p bmic_err = true; } -if (bmic_err == true) {/* double check key_index for some timing issue , */ /* cannot compare with psecuritypriv->dot118021XGrpKeyid also cause timing issue */
@@ -772,8 +765,6 @@ static signed int sta2sta_data_frame(struct adapter *adapter, union recv_frame * }else ret = _FAIL; - -if (bmcast) *psta =rtw_get_bcmc_stainfo (adapter);else
@@ -817,7 +808,6 @@ static signed int ap2sta_data_frame(struct adapter *adapter, union recv_frame *p goto exit; } -/* check BSSID */ if (is_zero_ether_addr(pattrib->bssid) || is_zero_ether_addr(mybssid) ||
@@ -858,14 +848,12 @@ static signed int ap2sta_data_frame(struct adapter *adapter, union recv_frame *p/* */ memcpy (pattrib->bssid, mybssid,ETH_ALEN ); - *psta =rtw_get_stainfo (pstapriv, pattrib->bssid);/* get sta_info */ if (!*psta) { ret = _FAIL; goto exit; } - }else if (check_fwstate (pmlmepriv,WIFI_AP_STATE ) == true) {/* Special case */ ret =RTW_RX_HANDLED ;
@@ -1109,7 +1097,6 @@ static union recv_frame *recvframe_defrag(struct adapter *adapter, pnextrframe = (union recv_frame *)plist; pnfhdr = &pnextrframe->u.hdr; -/* check the fragment sequence (2nd ~n fragment frame) */ if (curfragnum != pnfhdr->attrib.frag_num) {
@@ -1197,7 +1184,6 @@ static union recv_frame *recvframe_chk_defrag(struct adapter *padapter, union re/* free current defrag_q */ rtw_free_recvframe_queue (pdefrag_q, pfree_recv_queue); -/* Then enqueue the 0~(n-1) fragment into the defrag_q */ /* spin_lock(&pdefrag_q->lock); */
@@ -1236,7 +1222,6 @@ static union recv_frame *recvframe_chk_defrag(struct adapter *padapter, union re } -if ((prtnframe) && (prtnframe->u.hdr.attrib.privacy)) {/* after defrag we must check tkip mic code */ if (recvframe_chkmic (padapter, prtnframe) == _FAIL) {
@@ -1349,7 +1334,6 @@ static signed int validate_recv_data_frame(struct adapter *adapter, union recv_fif (ret == _FAIL || ret ==RTW_RX_HANDLED ) goto exit; -if (!psta) { ret = _FAIL; goto exit;
@@ -1359,7 +1343,6 @@ static signed int validate_recv_data_frame(struct adapter *adapter, union recv_f/* psta->signal_quality = prxcmd->sq; */ precv_frame->u.hdr.psta = psta; - pattrib->amsdu =0 ; pattrib->ack_policy =0 ;/* parsing QC field */
@@ -1377,7 +1360,6 @@ static signed int validate_recv_data_frame(struct adapter *adapter, union recv_f pattrib->hdrlen = pattrib->to_fr_ds ==3 ?30 :24 ; } -if (pattrib->order)/* HT-CTRL 11n */ pattrib->hdrlen +=4 ;
@@ -1827,7 +1809,6 @@ static int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl, un/* spin_lock_irqsave(&ppending_recvframe_queue->lock, irql); */ /* spin_lock(&ppending_recvframe_queue->lock); */ - phead =get_list_head (ppending_recvframe_queue); plist =get_next (phead);
@@ -1846,7 +1827,6 @@ static int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl, un } -/* spin_lock_irqsave(&ppending_recvframe_queue->lock, irql); */ /* spin_lock(&ppending_recvframe_queue->lock); */
@@ -1962,7 +1942,6 @@ static int recv_indicatepkts_in_order(struct adapter *padapter, struct recv_reor/* error condition; */ } -/* Update local variables. */ bPktInBuf = false;
@@ -2037,7 +2016,6 @@ static int recv_indicatepkt_reorder(struct adapter *padapter, union recv_frame * goto _err_exit; } -/* s4. */ /* Indication process. */ /* After Packet dropping and Sliding Window shifting as above, we can now just indicate the packets */
@@ -2065,7 +2043,6 @@ static int recv_indicatepkt_reorder(struct adapter *padapter, union recv_frame *return _FAIL; } -void rtw_reordering_ctrl_timeout_handler (struct timer_list *t) { struct recv_reorder_ctrl *preorder_ctrl =
@@ -2073,7 +2050,6 @@ void rtw_reordering_ctrl_timeout_handler(struct timer_list *t)struct adapter *padapter = preorder_ctrl->padapter;struct __queue *ppending_recvframe_queue = &preorder_ctrl->pending_recvframe_queue; -if (padapter->bDriverStopped || padapter->bSurpriseRemoved)return ;
@@ -2221,7 +2197,6 @@ static int recv_func(struct adapter *padapter, union recv_frame *rframe)return ret; } -s32 rtw_recv_entry (union recv_frame *precvframe) {struct adapter *padapter;
drivers/staging/rtl8723bs/core/rtw_wlan_util.c +0 -1
@@ -340,7 +340,6 @@ void set_channel_bwmode(struct adapter *padapter, unsigned char channel, unsigne center_ch =rtw_get_center_ch (channel, bwmode, channel_offset); -/* set Channel */ if (mutex_lock_interruptible (&(adapter_to_dvobj (padapter)->setch_mutex)))return ;
Signature · 1 line
2.43.0
Quoted 4 lines · Mohammed Rizwan Kaniyate
Remove multiple consecutive blank lines.
Issue reported by checkpatch.plSigned-off-by Mohammed Rizwan Kaniyate <[email protected]>
Quoted 9 lines
--- drivers/staging/rtl8723bs/core/rtw_btcoex.c | 1 - drivers/staging/rtl8723bs/core/rtw_efuse.c | 1 - .../staging/rtl8723bs/core/rtw_ioctl_set.c | 1 - drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 48 ------------------- drivers/staging/rtl8723bs/core/rtw_recv.c | 25 ---------- .../staging/rtl8723bs/core/rtw_wlan_util.c | 1 - 6 files changed, 77 deletions(-)
...
LGTM,
Reviewed-by Luka Gejak <[email protected]>
Best regards,
Luka Gejak