Skip to contentSkip to conversation

staging: rtl8723bs: Fix inconsistent indenting warning in rtw_ap.c

PATCH In review Dharanitharan R 2 participants 2 messages Feb 3 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8723bs: Fix inconsistent indenting warning in rtw_ap.c

Fix smatch/checkpatch reported inconsistent indenting warning in rtw_ap.c. drivers/staging/rtl8723bs/core/rtw_ap.c: fix inconsistent indentation.
No functional changes were introduced.

---
 drivers/staging/rtl8723bs/core/rtw_ap.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/rtl8723bs/core/rtw_ap.c +1 -2
index 67197c7d4a4d..919bf8db6002 100644
@@ -178,7 +178,6 @@ void expire_timeout_chk(struct adapter *padapter)
 	struct sta_priv *pstapriv = &padapter->stapriv;
 	u8 chk_alive_num = 0;
 	char chk_alive_list[NUM_STA];
-	int i;
 
 	spin_lock_bh(&pstapriv->auth_list_lock);
 
@@ -278,7 +277,7 @@ void expire_timeout_chk(struct adapter *padapter)
 		}
 
 		/* issue null data to check sta alive*/
-		for (i = 0; i < chk_alive_num; i++) {
+		for (int i = 0; i < chk_alive_num; i++) {
 			int ret = _FAIL;
 
 			psta = rtw_get_stainfo_by_offset(pstapriv, chk_alive_list[i]);
Signature · 1 line
2.43.0
#1 lore raw
Quoted 8 lines · Dharanitharan R

Fix smatch/checkpatch reported inconsistent indenting warning in rtw_ap.c. drivers/staging/rtl8723bs/core/rtw_ap.c: fix inconsistent indentation.
No functional changes were introduced.

---

Your commit message says fix incosistnent identation, but the diff shows changing a C89 for-loop into C99 style. This is not a whitespace fix.

ET