Commit b17c858d authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Greg Kroah-Hartman

staging: rtl8188eu: remove multiple blank line

Multiple blank lines is against the kernel coding style and checkpatch
complains for that.
Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a45515f3
...@@ -113,7 +113,6 @@ void _rtw_free_recv_priv(struct recv_priv *precvpriv) ...@@ -113,7 +113,6 @@ void _rtw_free_recv_priv(struct recv_priv *precvpriv)
{ {
struct adapter *padapter = precvpriv->adapter; struct adapter *padapter = precvpriv->adapter;
rtw_free_uc_swdec_pending_queue(padapter); rtw_free_uc_swdec_pending_queue(padapter);
if (precvpriv->pallocated_frame_buf) { if (precvpriv->pallocated_frame_buf) {
...@@ -149,7 +148,6 @@ struct recv_frame *_rtw_alloc_recvframe(struct __queue *pfree_recv_queue) ...@@ -149,7 +148,6 @@ struct recv_frame *_rtw_alloc_recvframe(struct __queue *pfree_recv_queue)
} }
} }
return (struct recv_frame *)hdr; return (struct recv_frame *)hdr;
} }
...@@ -196,7 +194,6 @@ int rtw_free_recvframe(struct recv_frame *precvframe, ...@@ -196,7 +194,6 @@ int rtw_free_recvframe(struct recv_frame *precvframe,
spin_unlock_bh(&pfree_recv_queue->lock); spin_unlock_bh(&pfree_recv_queue->lock);
return _SUCCESS; return _SUCCESS;
} }
...@@ -205,7 +202,6 @@ int _rtw_enqueue_recvframe(struct recv_frame *precvframe, struct __queue *queue) ...@@ -205,7 +202,6 @@ int _rtw_enqueue_recvframe(struct recv_frame *precvframe, struct __queue *queue)
struct adapter *padapter = precvframe->adapter; struct adapter *padapter = precvframe->adapter;
struct recv_priv *precvpriv = &padapter->recvpriv; struct recv_priv *precvpriv = &padapter->recvpriv;
list_del_init(&(precvframe->list)); list_del_init(&(precvframe->list));
list_add_tail(&(precvframe->list), get_list_head(queue)); list_add_tail(&(precvframe->list), get_list_head(queue));
...@@ -214,7 +210,6 @@ int _rtw_enqueue_recvframe(struct recv_frame *precvframe, struct __queue *queue) ...@@ -214,7 +210,6 @@ int _rtw_enqueue_recvframe(struct recv_frame *precvframe, struct __queue *queue)
precvpriv->free_recvframe_cnt++; precvpriv->free_recvframe_cnt++;
} }
return _SUCCESS; return _SUCCESS;
} }
...@@ -409,7 +404,6 @@ static int recvframe_chkmic(struct adapter *adapter, ...@@ -409,7 +404,6 @@ static int recvframe_chkmic(struct adapter *adapter,
exit: exit:
return res; return res;
} }
...@@ -471,7 +465,6 @@ static struct recv_frame *decryptor(struct adapter *padapter, ...@@ -471,7 +465,6 @@ static struct recv_frame *decryptor(struct adapter *padapter,
return_packet = NULL; return_packet = NULL;
} }
return return_packet; return return_packet;
} }
...@@ -490,7 +483,6 @@ static struct recv_frame *portctrl(struct adapter *adapter, ...@@ -490,7 +483,6 @@ static struct recv_frame *portctrl(struct adapter *adapter,
struct rx_pkt_attrib *pattrib; struct rx_pkt_attrib *pattrib;
__be16 be_tmp; __be16 be_tmp;
pstapriv = &adapter->stapriv; pstapriv = &adapter->stapriv;
auth_alg = adapter->securitypriv.dot11AuthAlgrthm; auth_alg = adapter->securitypriv.dot11AuthAlgrthm;
...@@ -549,7 +541,6 @@ static struct recv_frame *portctrl(struct adapter *adapter, ...@@ -549,7 +541,6 @@ static struct recv_frame *portctrl(struct adapter *adapter,
prtnframe = precv_frame; prtnframe = precv_frame;
} }
return prtnframe; return prtnframe;
} }
...@@ -561,7 +552,6 @@ static int recv_decache(struct recv_frame *precv_frame, u8 bretry, ...@@ -561,7 +552,6 @@ static int recv_decache(struct recv_frame *precv_frame, u8 bretry,
u16 seq_ctrl = ((precv_frame->attrib.seq_num&0xffff) << 4) | u16 seq_ctrl = ((precv_frame->attrib.seq_num&0xffff) << 4) |
(precv_frame->attrib.frag_num & 0xf); (precv_frame->attrib.frag_num & 0xf);
if (tid > 15) { if (tid > 15) {
RT_TRACE(_module_rtl871x_recv_c_, _drv_notice_, ("recv_decache, (tid>15)! seq_ctrl=0x%x, tid=0x%x\n", seq_ctrl, tid)); RT_TRACE(_module_rtl871x_recv_c_, _drv_notice_, ("recv_decache, (tid>15)! seq_ctrl=0x%x, tid=0x%x\n", seq_ctrl, tid));
...@@ -578,7 +568,6 @@ static int recv_decache(struct recv_frame *precv_frame, u8 bretry, ...@@ -578,7 +568,6 @@ static int recv_decache(struct recv_frame *precv_frame, u8 bretry,
prxcache->tid_rxseq[tid] = seq_ctrl; prxcache->tid_rxseq[tid] = seq_ctrl;
return _SUCCESS; return _SUCCESS;
} }
...@@ -715,7 +704,6 @@ int sta2sta_data_frame(struct adapter *adapter, struct recv_frame *precv_frame, ...@@ -715,7 +704,6 @@ int sta2sta_data_frame(struct adapter *adapter, struct recv_frame *precv_frame,
u8 *sta_addr = NULL; u8 *sta_addr = NULL;
int bmcast = IS_MCAST(pattrib->dst); int bmcast = IS_MCAST(pattrib->dst);
if ((check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true) || if ((check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true) ||
(check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true)) { (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true)) {
/* filter packets that SA is myself or multicast or broadcast */ /* filter packets that SA is myself or multicast or broadcast */
...@@ -803,7 +791,6 @@ static int ap2sta_data_frame( ...@@ -803,7 +791,6 @@ static int ap2sta_data_frame(
u8 *myhwaddr = myid(&adapter->eeprompriv); u8 *myhwaddr = myid(&adapter->eeprompriv);
int bmcast = IS_MCAST(pattrib->dst); int bmcast = IS_MCAST(pattrib->dst);
if ((check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true) && if ((check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true) &&
(check_fwstate(pmlmepriv, _FW_LINKED) == true || (check_fwstate(pmlmepriv, _FW_LINKED) == true ||
check_fwstate(pmlmepriv, _FW_UNDER_LINKING))) { check_fwstate(pmlmepriv, _FW_UNDER_LINKING))) {
...@@ -895,7 +882,6 @@ static int ap2sta_data_frame( ...@@ -895,7 +882,6 @@ static int ap2sta_data_frame(
exit: exit:
return ret; return ret;
} }
...@@ -910,7 +896,6 @@ static int sta2ap_data_frame(struct adapter *adapter, ...@@ -910,7 +896,6 @@ static int sta2ap_data_frame(struct adapter *adapter,
unsigned char *mybssid = get_bssid(pmlmepriv); unsigned char *mybssid = get_bssid(pmlmepriv);
int ret = _SUCCESS; int ret = _SUCCESS;
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) { if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) {
/* For AP mode, RA = BSSID, TX = STA(SRC_ADDR), A3 = DST_ADDR */ /* For AP mode, RA = BSSID, TX = STA(SRC_ADDR), A3 = DST_ADDR */
if (memcmp(pattrib->bssid, mybssid, ETH_ALEN)) { if (memcmp(pattrib->bssid, mybssid, ETH_ALEN)) {
...@@ -955,7 +940,6 @@ static int sta2ap_data_frame(struct adapter *adapter, ...@@ -955,7 +940,6 @@ static int sta2ap_data_frame(struct adapter *adapter,
exit: exit:
return ret; return ret;
} }
...@@ -1137,7 +1121,6 @@ static int validate_recv_data_frame(struct adapter *adapter, ...@@ -1137,7 +1121,6 @@ static int validate_recv_data_frame(struct adapter *adapter,
struct security_priv *psecuritypriv = &adapter->securitypriv; struct security_priv *psecuritypriv = &adapter->securitypriv;
int ret = _SUCCESS; int ret = _SUCCESS;
bretry = GetRetry(ptr); bretry = GetRetry(ptr);
pda = get_da(ptr); pda = get_da(ptr);
psa = get_sa(ptr); psa = get_sa(ptr);
...@@ -1241,7 +1224,6 @@ static int validate_recv_data_frame(struct adapter *adapter, ...@@ -1241,7 +1224,6 @@ static int validate_recv_data_frame(struct adapter *adapter,
exit: exit:
return ret; return ret;
} }
...@@ -1261,7 +1243,6 @@ static int validate_recv_frame(struct adapter *adapter, ...@@ -1261,7 +1243,6 @@ static int validate_recv_frame(struct adapter *adapter,
u8 ver = (unsigned char)(*ptr)&0x3; u8 ver = (unsigned char)(*ptr)&0x3;
struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv; struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
if (pmlmeext->sitesurvey_res.state == SCAN_PROCESS) { if (pmlmeext->sitesurvey_res.state == SCAN_PROCESS) {
int ch_set_idx = rtw_ch_set_search_ch(pmlmeext->channel_set, rtw_get_oper_ch(adapter)); int ch_set_idx = rtw_ch_set_search_ch(pmlmeext->channel_set, rtw_get_oper_ch(adapter));
if (ch_set_idx >= 0) if (ch_set_idx >= 0)
...@@ -1350,7 +1331,6 @@ static int validate_recv_frame(struct adapter *adapter, ...@@ -1350,7 +1331,6 @@ static int validate_recv_frame(struct adapter *adapter,
exit: exit:
return retval; return retval;
} }
...@@ -1433,7 +1413,6 @@ static struct recv_frame *recvframe_defrag(struct adapter *adapter, ...@@ -1433,7 +1413,6 @@ static struct recv_frame *recvframe_defrag(struct adapter *adapter,
struct recv_frame *prframe, *pnextrframe; struct recv_frame *prframe, *pnextrframe;
struct __queue *pfree_recv_queue; struct __queue *pfree_recv_queue;
curfragnum = 0; curfragnum = 0;
pfree_recv_queue = &adapter->recvpriv.free_recv_queue; pfree_recv_queue = &adapter->recvpriv.free_recv_queue;
...@@ -1498,7 +1477,6 @@ static struct recv_frame *recvframe_defrag(struct adapter *adapter, ...@@ -1498,7 +1477,6 @@ static struct recv_frame *recvframe_defrag(struct adapter *adapter,
RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("Performance defrag!!!!!\n")); RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("Performance defrag!!!!!\n"));
return prframe; return prframe;
} }
...@@ -1516,7 +1494,6 @@ struct recv_frame *recvframe_chk_defrag(struct adapter *padapter, ...@@ -1516,7 +1494,6 @@ struct recv_frame *recvframe_chk_defrag(struct adapter *padapter,
struct recv_frame *prtnframe = NULL; struct recv_frame *prtnframe = NULL;
struct __queue *pfree_recv_queue, *pdefrag_q; struct __queue *pfree_recv_queue, *pdefrag_q;
pstapriv = &padapter->stapriv; pstapriv = &padapter->stapriv;
pfhdr = precv_frame; pfhdr = precv_frame;
...@@ -1600,7 +1577,6 @@ struct recv_frame *recvframe_chk_defrag(struct adapter *padapter, ...@@ -1600,7 +1577,6 @@ struct recv_frame *recvframe_chk_defrag(struct adapter *padapter,
} }
} }
return prtnframe; return prtnframe;
} }
...@@ -2104,7 +2080,6 @@ s32 rtw_recv_entry(struct recv_frame *precvframe) ...@@ -2104,7 +2080,6 @@ s32 rtw_recv_entry(struct recv_frame *precvframe)
struct recv_priv *precvpriv; struct recv_priv *precvpriv;
s32 ret = _SUCCESS; s32 ret = _SUCCESS;
padapter = precvframe->adapter; padapter = precvframe->adapter;
precvpriv = &padapter->recvpriv; precvpriv = &padapter->recvpriv;
...@@ -2117,7 +2092,6 @@ s32 rtw_recv_entry(struct recv_frame *precvframe) ...@@ -2117,7 +2092,6 @@ s32 rtw_recv_entry(struct recv_frame *precvframe)
precvpriv->rx_pkts++; precvpriv->rx_pkts++;
return ret; return ret;
_recv_entry_drop: _recv_entry_drop:
......
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