Staging: rtl8723bs: Remove unnecessary braces in rtw_update_ht_cap
authorMeir Elisha <meir6264@gmail.com>
Tue, 20 Feb 2024 12:28:02 +0000 (14:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Mar 2024 14:05:11 +0000 (14:05 +0000)
Remove braces from single statement blocks to improve coding style.

Signed-off-by: Meir Elisha <meir6264@gmail.com>
Link: https://lore.kernel.org/r/20240220122802.12561-1-meir6264@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme.c

index b221913733fb6179a4c95bec55a665139bcd0b0d..5568215b35bd114472fc0882a29f5eaca60013dc 100644 (file)
@@ -1548,9 +1548,9 @@ void _rtw_join_timeout_handler(struct timer_list *t)
                                int do_join_r;
 
                                do_join_r = rtw_do_join(adapter);
-                               if (do_join_r != _SUCCESS) {
+                               if (do_join_r != _SUCCESS)
                                        continue;
-                               }
+
                                break;
                        } else {
                                rtw_indicate_disconnect(adapter);
@@ -2432,9 +2432,8 @@ void rtw_update_ht_cap(struct adapter *padapter, u8 *pie, uint ie_len, u8 channe
                return;
 
        /* maybe needs check if ap supports rx ampdu. */
-       if (!(phtpriv->ampdu_enable) && pregistrypriv->ampdu_enable == 1) {
+       if (!(phtpriv->ampdu_enable) && pregistrypriv->ampdu_enable == 1)
                phtpriv->ampdu_enable = true;
-       }
 
        /* check Max Rx A-MPDU Size */
        len = 0;