diff options
author | Hoorad Farrokh <hourrad.f@gmail.com> | 2024-01-17 22:00:33 +1300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-01-24 10:19:53 -0800 |
commit | f4b3422ca08159435eab0b2be445ffb39582968f (patch) | |
tree | 7deb42a59915c57c0e9edb92684d150da27d51f9 | |
parent | cbfeaf08296a9eab0ed043f6ff4ad5519e3952b3 (diff) | |
download | linux-stable-f4b3422ca08159435eab0b2be445ffb39582968f.tar.gz linux-stable-f4b3422ca08159435eab0b2be445ffb39582968f.tar.bz2 linux-stable-f4b3422ca08159435eab0b2be445ffb39582968f.zip |
staging: rtl8712: 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@gmail.com>
Link: https://lore.kernel.org/r/4vmxiuz5u2f2vehngdccj5q7bakpujagk72ty5ounfv2nfzxgr@lqkdn5fecc23
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtl8723bs/core/rtw_sta_mgt.c | 3 |
1 files changed, 1 insertions, 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); } |