Commit fabf2986 authored by Shobhit Kukreti's avatar Shobhit Kukreti Committed by Greg Kroah-Hartman

staging: rtl8723bs: Resolve the checkpatch error: else should follow close brace '}'

Cleaned up the code to resolve the checkpatch error else should follow
close brace '}' from the following files:

mlme_linux.c
recv_linux.c
sdio_intf.c
Signed-off-by: default avatarShobhit Kukreti <shobhitkukreti@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6a9b5dd1
...@@ -48,8 +48,7 @@ void rtw_os_indicate_connect(struct adapter *adapter) ...@@ -48,8 +48,7 @@ void rtw_os_indicate_connect(struct adapter *adapter)
if ((check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true) || if ((check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true) ||
(check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true)) { (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true)) {
rtw_cfg80211_ibss_indicate_connect(adapter); rtw_cfg80211_ibss_indicate_connect(adapter);
} } else
else
rtw_cfg80211_indicate_connect(adapter); rtw_cfg80211_indicate_connect(adapter);
rtw_indicate_wx_assoc_event(adapter); rtw_indicate_wx_assoc_event(adapter);
...@@ -104,8 +103,7 @@ void rtw_reset_securitypriv(struct adapter *adapter) ...@@ -104,8 +103,7 @@ void rtw_reset_securitypriv(struct adapter *adapter)
adapter->securitypriv.ndisauthtype = Ndis802_11AuthModeOpen; adapter->securitypriv.ndisauthtype = Ndis802_11AuthModeOpen;
adapter->securitypriv.ndisencryptstatus = Ndis802_11WEPDisabled; adapter->securitypriv.ndisencryptstatus = Ndis802_11WEPDisabled;
} } else {
else {
/* reset values in securitypriv */ /* reset values in securitypriv */
/* if (adapter->mlmepriv.fw_state & WIFI_STATION_STATE) */ /* if (adapter->mlmepriv.fw_state & WIFI_STATION_STATE) */
/* */ /* */
......
...@@ -62,15 +62,13 @@ _pkt *rtw_os_alloc_msdu_pkt(union recv_frame *prframe, u16 nSubframe_Length, u8 ...@@ -62,15 +62,13 @@ _pkt *rtw_os_alloc_msdu_pkt(union recv_frame *prframe, u16 nSubframe_Length, u8
if (sub_skb) { if (sub_skb) {
skb_reserve(sub_skb, 12); skb_reserve(sub_skb, 12);
skb_put_data(sub_skb, (pdata + ETH_HLEN), nSubframe_Length); skb_put_data(sub_skb, (pdata + ETH_HLEN), nSubframe_Length);
} } else {
else {
sub_skb = rtw_skb_clone(prframe->u.hdr.pkt); sub_skb = rtw_skb_clone(prframe->u.hdr.pkt);
if (sub_skb) { if (sub_skb) {
sub_skb->data = pdata + ETH_HLEN; sub_skb->data = pdata + ETH_HLEN;
sub_skb->len = nSubframe_Length; sub_skb->len = nSubframe_Length;
skb_set_tail_pointer(sub_skb, nSubframe_Length); skb_set_tail_pointer(sub_skb, nSubframe_Length);
} } else {
else {
DBG_871X("%s(): rtw_skb_clone() Fail!!!\n", __func__); DBG_871X("%s(): rtw_skb_clone() Fail!!!\n", __func__);
return NULL; return NULL;
} }
...@@ -142,8 +140,7 @@ void rtw_os_recv_indicate_pkt(struct adapter *padapter, _pkt *pkt, struct rx_pkt ...@@ -142,8 +140,7 @@ void rtw_os_recv_indicate_pkt(struct adapter *padapter, _pkt *pkt, struct rx_pkt
return; return;
} }
} }
} } else {
else {
/* to APself */ /* to APself */
/* DBG_871X("to APSelf\n"); */ /* DBG_871X("to APSelf\n"); */
DBG_COUNTER(padapter->rx_logs.os_indicate_ap_self); DBG_COUNTER(padapter->rx_logs.os_indicate_ap_self);
...@@ -182,24 +179,21 @@ void rtw_handle_tkip_mic_err(struct adapter *padapter, u8 bgroup) ...@@ -182,24 +179,21 @@ void rtw_handle_tkip_mic_err(struct adapter *padapter, u8 bgroup)
if (psecuritypriv->last_mic_err_time == 0) { if (psecuritypriv->last_mic_err_time == 0) {
psecuritypriv->last_mic_err_time = jiffies; psecuritypriv->last_mic_err_time = jiffies;
} } else {
else {
cur_time = jiffies; cur_time = jiffies;
if (cur_time - psecuritypriv->last_mic_err_time < 60*HZ) { if (cur_time - psecuritypriv->last_mic_err_time < 60*HZ) {
psecuritypriv->btkip_countermeasure = true; psecuritypriv->btkip_countermeasure = true;
psecuritypriv->last_mic_err_time = 0; psecuritypriv->last_mic_err_time = 0;
psecuritypriv->btkip_countermeasure_time = cur_time; psecuritypriv->btkip_countermeasure_time = cur_time;
} } else {
else {
psecuritypriv->last_mic_err_time = jiffies; psecuritypriv->last_mic_err_time = jiffies;
} }
} }
if (bgroup) { if (bgroup) {
key_type |= NL80211_KEYTYPE_GROUP; key_type |= NL80211_KEYTYPE_GROUP;
} } else {
else {
key_type |= NL80211_KEYTYPE_PAIRWISE; key_type |= NL80211_KEYTYPE_PAIRWISE;
} }
...@@ -209,8 +203,7 @@ void rtw_handle_tkip_mic_err(struct adapter *padapter, u8 bgroup) ...@@ -209,8 +203,7 @@ void rtw_handle_tkip_mic_err(struct adapter *padapter, u8 bgroup)
memset(&ev, 0x00, sizeof(ev)); memset(&ev, 0x00, sizeof(ev));
if (bgroup) { if (bgroup) {
ev.flags |= IW_MICFAILURE_GROUP; ev.flags |= IW_MICFAILURE_GROUP;
} } else {
else {
ev.flags |= IW_MICFAILURE_PAIRWISE; ev.flags |= IW_MICFAILURE_PAIRWISE;
} }
......
...@@ -88,8 +88,7 @@ static int sdio_alloc_irq(struct dvobj_priv *dvobj) ...@@ -88,8 +88,7 @@ static int sdio_alloc_irq(struct dvobj_priv *dvobj)
if (err) { if (err) {
dvobj->drv_dbg.dbg_sdio_alloc_irq_error_cnt++; dvobj->drv_dbg.dbg_sdio_alloc_irq_error_cnt++;
printk(KERN_CRIT "%s: sdio_claim_irq FAIL(%d)!\n", __func__, err); printk(KERN_CRIT "%s: sdio_claim_irq FAIL(%d)!\n", __func__, err);
} } else {
else {
dvobj->drv_dbg.dbg_sdio_alloc_irq_cnt++; dvobj->drv_dbg.dbg_sdio_alloc_irq_cnt++;
dvobj->irq_alloc = 1; dvobj->irq_alloc = 1;
} }
...@@ -115,8 +114,7 @@ static void sdio_free_irq(struct dvobj_priv *dvobj) ...@@ -115,8 +114,7 @@ static void sdio_free_irq(struct dvobj_priv *dvobj)
if (err) { if (err) {
dvobj->drv_dbg.dbg_sdio_free_irq_error_cnt++; dvobj->drv_dbg.dbg_sdio_free_irq_error_cnt++;
DBG_871X_LEVEL(_drv_err_,"%s: sdio_release_irq FAIL(%d)!\n", __func__, err); DBG_871X_LEVEL(_drv_err_,"%s: sdio_release_irq FAIL(%d)!\n", __func__, err);
} } else
else
dvobj->drv_dbg.dbg_sdio_free_irq_cnt++; dvobj->drv_dbg.dbg_sdio_free_irq_cnt++;
sdio_release_host(func); sdio_release_host(func);
} }
...@@ -232,8 +230,7 @@ static void sdio_deinit(struct dvobj_priv *dvobj) ...@@ -232,8 +230,7 @@ static void sdio_deinit(struct dvobj_priv *dvobj)
if (err) { if (err) {
dvobj->drv_dbg.dbg_sdio_free_irq_error_cnt++; dvobj->drv_dbg.dbg_sdio_free_irq_error_cnt++;
DBG_8192C(KERN_ERR "%s: sdio_release_irq(%d)\n", __func__, err); DBG_8192C(KERN_ERR "%s: sdio_release_irq(%d)\n", __func__, err);
} } else
else
dvobj->drv_dbg.dbg_sdio_free_irq_cnt++; dvobj->drv_dbg.dbg_sdio_free_irq_cnt++;
} }
......
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