staging: rtl8712: remove unnecessary braces in while loop
authorHoorad Farrokh <hourrad.f@gmail.com>
Wed, 17 Jan 2024 09:00:33 +0000 (22:00 +1300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jan 2024 18:19:53 +0000 (10:19 -0800)
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>
drivers/staging/rtl8723bs/core/rtw_sta_mgt.c

index 1593980d2c6a07774807dc703b50ab899e952c13..0145c4da5ac0696ddba4ecc362efb5a4be3df14f 100644 (file)
@@ -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);
 }