From: Andrei Khomenkov <khomenkov@mailbox.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-staging@lists.linux.dev
Subject: [PATCH v6 5/8] staging: rtl8723bs: remove redundant braces for single-statement block
Date: Mon, 27 Apr 2026 20:58:43 +0300 [thread overview]
Message-ID: <20260427175846.23470-6-khomenkov@mailbox.org> (raw)
In-Reply-To: <20260427175846.23470-1-khomenkov@mailbox.org>
Remove redundant curly braces for single-statement block to improve
code readability and conform to the Linux kernel coding style.
This fixes the BRACES issue identified by checkpatch.pl.
Signed-off-by: Andrei Khomenkov <khomenkov@mailbox.org>
---
drivers/staging/rtl8723bs/hal/odm.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/odm.c b/drivers/staging/rtl8723bs/hal/odm.c
index b01e9016e30c..b4f872f4d6c9 100644
--- a/drivers/staging/rtl8723bs/hal/odm.c
+++ b/drivers/staging/rtl8723bs/hal/odm.c
@@ -380,12 +380,9 @@ static void FindMinimumRSSI(struct adapter *padapter)
/* 1 1.Determine the minimum RSSI */
- if (
- !pDM_Odm->bLinked &&
- (pdmpriv->EntryMinUndecoratedSmoothedPWDB == 0)
- ) {
+ if (!pDM_Odm->bLinked && (pdmpriv->EntryMinUndecoratedSmoothedPWDB == 0))
pdmpriv->MinUndecoratedPWDBForDM = 0;
- } else
+ else
pdmpriv->MinUndecoratedPWDBForDM = pdmpriv->EntryMinUndecoratedSmoothedPWDB;
}
--
2.53.0
next prev parent reply other threads:[~2026-04-27 17:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-27 17:58 [PATCH v6 0/8] staging: rtl8723bs: simplify booleans and cleanup style Andrei Khomenkov
2026-04-27 17:58 ` [PATCH v6 1/8] staging: rtl8723bs: core: simplify boolean comparisons Andrei Khomenkov
2026-04-27 17:58 ` [PATCH v6 2/8] staging: rtl8723bs: hal: " Andrei Khomenkov
2026-04-27 17:58 ` [PATCH v6 3/8] staging: rtl8723bs: os_dep: " Andrei Khomenkov
2026-04-27 17:58 ` [PATCH v6 4/8] staging: rtl8723bs: add spaces around bitwise OR operators Andrei Khomenkov
2026-04-27 17:58 ` Andrei Khomenkov [this message]
2026-04-27 17:58 ` [PATCH v6 6/8] staging: rtl8723bs: move logical operators to previous line Andrei Khomenkov
2026-04-27 17:58 ` [PATCH v6 7/8] staging: rtl8723bs: fix alignment of continued conditions Andrei Khomenkov
2026-04-27 17:58 ` [PATCH v6 8/8] staging: rtl8723bs: wrap lines exceeding 100 characters Andrei Khomenkov
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=20260427175846.23470-6-khomenkov@mailbox.org \
--to=khomenkov@mailbox.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-staging@lists.linux.dev \
/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