* [PATCH v3] Staging: rtl8723bs: Remove unnecessary braces in rtw_update_ht_cap
@ 2024-02-20 12:28 Meir Elisha
0 siblings, 0 replies; only message in thread
From: Meir Elisha @ 2024-02-20 12:28 UTC (permalink / raw)
To: Greg Kroah-Hartman, Hans de Goede, Ruan Jinjie, Yang Yingliang
Cc: linux-staging, linux-kernel, Meir Elisha
Remove braces from single statement blocks to improve coding style.
Signed-off-by: Meir Elisha <meir6264@gmail.com>
---
Changes in v3: subject and description changed
Changes in v2: none
drivers/staging/rtl8723bs/core/rtw_mlme.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c
index b221913733fb..5568215b35bd 100644
--- a/drivers/staging/rtl8723bs/core/rtw_mlme.c
+++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c
@@ -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;
--
2.34.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-20 12:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-20 12:28 [PATCH v3] Staging: rtl8723bs: Remove unnecessary braces in rtw_update_ht_cap Meir Elisha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox