Commit 9c63e986 authored by Larry Finger's avatar Larry Finger Committed by Greg Kroah-Hartman

staging: rtl8723bs: Fix indenting mistake in core/rtw_ap.c

Smatch reports the following:

  CHECK   drivers/staging/rtl8723bs/core/rtw_ap.c
drivers/staging/rtl8723bs/core/rtw_ap.c:382 expire_timeout_chk() warn: inconsistent indenting

Fixing this requires changing the indentatikon of a long for loop.
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 21a9509e
...@@ -379,10 +379,10 @@ void expire_timeout_chk(struct adapter *padapter) ...@@ -379,10 +379,10 @@ void expire_timeout_chk(struct adapter *padapter)
spin_unlock_bh(&pstapriv->asoc_list_lock); spin_unlock_bh(&pstapriv->asoc_list_lock);
if (chk_alive_num) { if (chk_alive_num) {
u8 backup_oper_channel = 0; u8 backup_oper_channel = 0;
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
/* switch to correct channel of current network before issue keep-alive frames */ /* switch to correct channel of current network before issue keep-alive frames */
if (rtw_get_oper_ch(padapter) != pmlmeext->cur_channel) { if (rtw_get_oper_ch(padapter) != pmlmeext->cur_channel) {
backup_oper_channel = rtw_get_oper_ch(padapter); backup_oper_channel = rtw_get_oper_ch(padapter);
...@@ -404,7 +404,6 @@ if (chk_alive_num) { ...@@ -404,7 +404,6 @@ if (chk_alive_num) {
psta->keep_alive_trycnt++; psta->keep_alive_trycnt++;
if (ret == _SUCCESS) { if (ret == _SUCCESS) {
DBG_871X( DBG_871X(
"asoc check, sta(" MAC_FMT ") is alive\n", "asoc check, sta(" MAC_FMT ") is alive\n",
MAC_ARG(psta->hwaddr) MAC_ARG(psta->hwaddr)
...@@ -414,11 +413,9 @@ if (chk_alive_num) { ...@@ -414,11 +413,9 @@ if (chk_alive_num) {
continue; continue;
} else if (psta->keep_alive_trycnt <= 3) { } else if (psta->keep_alive_trycnt <= 3) {
DBG_871X( DBG_871X(
"ack check for asoc expire, keep_alive_trycnt =%d\n", "ack check for asoc expire, keep_alive_trycnt =%d\n",
psta->keep_alive_trycnt psta->keep_alive_trycnt);
);
psta->expire_to = 1; psta->expire_to = 1;
continue; continue;
} }
...@@ -427,8 +424,7 @@ if (chk_alive_num) { ...@@ -427,8 +424,7 @@ if (chk_alive_num) {
DBG_871X( DBG_871X(
"asoc expire "MAC_FMT", state = 0x%x\n", "asoc expire "MAC_FMT", state = 0x%x\n",
MAC_ARG(psta->hwaddr), MAC_ARG(psta->hwaddr),
psta->state psta->state);
);
spin_lock_bh(&pstapriv->asoc_list_lock); spin_lock_bh(&pstapriv->asoc_list_lock);
if (list_empty(&psta->asoc_list) == false) { if (list_empty(&psta->asoc_list) == false) {
list_del_init(&psta->asoc_list); list_del_init(&psta->asoc_list);
...@@ -436,12 +432,11 @@ if (chk_alive_num) { ...@@ -436,12 +432,11 @@ if (chk_alive_num) {
updated = ap_free_sta(padapter, psta, false, WLAN_REASON_DEAUTH_LEAVING); updated = ap_free_sta(padapter, psta, false, WLAN_REASON_DEAUTH_LEAVING);
} }
spin_unlock_bh(&pstapriv->asoc_list_lock); spin_unlock_bh(&pstapriv->asoc_list_lock);
} }
if (backup_oper_channel > 0) /* back to the original operation channel */ if (backup_oper_channel > 0) /* back to the original operation channel */
SelectChannel(padapter, backup_oper_channel); SelectChannel(padapter, backup_oper_channel);
} }
associated_clients_update(padapter, updated); associated_clients_update(padapter, updated);
} }
......
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