From: Meir Elisha <meir6264@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Hans de Goede <hdegoede@redhat.com>,
Ruan Jinjie <ruanjinjie@huawei.com>,
Yang Yingliang <yangyingliang@huawei.com>
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
Meir Elisha <meir6264@Gmail.com>
Subject: [PATCH v2 1/4] Staging: rtl8723bs: Remove unnecessary braces
Date: Thu, 1 Feb 2024 16:04:56 +0200 [thread overview]
Message-ID: <20240201140459.438479-2-meir6264@Gmail.com> (raw)
In-Reply-To: <20240201140459.438479-1-meir6264@Gmail.com>
braces {} are not necessary for single statement blocks
Signed-off-by: Meir Elisha <meir6264@Gmail.com>
---
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
next prev parent reply other threads:[~2024-02-01 14:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-01 14:04 [PATCH v2 0/4] Staging: rtl8723bs: checkpatch fixes for rtw_mlme.c Meir Elisha
2024-02-01 14:04 ` Meir Elisha [this message]
2024-02-01 14:04 ` [PATCH v2 2/4] Staging: rtl8723bs: Remove extra spaces Meir Elisha
2024-02-02 7:21 ` Dan Carpenter
2024-02-01 14:04 ` [PATCH v2 3/4] Staging: rtl8723bs: Fix block comments warning Meir Elisha
2024-02-01 14:04 ` [PATCH v2 4/4] Staging: rtl8723bs: fix else after break warning Meir Elisha
2024-02-02 8:00 ` Dan Carpenter
2024-02-01 21:26 ` [PATCH v2 0/4] Staging: rtl8723bs: checkpatch fixes for rtw_mlme.c Philipp Hortmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240201140459.438479-2-meir6264@Gmail.com \
--to=meir6264@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=hdegoede@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=ruanjinjie@huawei.com \
--cc=yangyingliang@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox