[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4ii7ptqhz7ion46dczabnevuj7tjfv4iofvzedms6tvfgsfu2e@6rvcsdyodny2>
Date: Mon, 22 Jan 2024 09:01:27 +1300
From: Hoorad Farrokh <hourrad.f@...il.com>
To: gregkh@...uxfoundation.org, linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: [PATCH] staging: rtl8723bs: remove unnecessary braces in while loop
Fixed a linux coding style.
Reported by checkpath:
WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: Hoorad Farrokh <hourrad.f@...il.com>
---
drivers/staging/rtl8723bs/core/rtw_sta_mgt.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c b/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c
index 1593980d2c6a..0145c4da5ac0 100644
--- a/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c
+++ b/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c
@@ -127,9 +127,8 @@ void kfree_all_stainfo(struct sta_priv *pstapriv)
phead = get_list_head(&pstapriv->free_sta_queue);
plist = get_next(phead);
- while (phead != plist) {
+ while (phead != plist)
plist = get_next(plist);
- }
spin_unlock_bh(&pstapriv->sta_hash_lock);
}
--
2.42.0
Powered by blists - more mailing lists