From: Mohammed Momin <linuxmomin0@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-staging@lists.linux.dev
Cc: Dan Carpenter <error27@gmail.com>,
linux-kernel@vger.kernel.org,
Mohammed Momin <linuxmomin0@gmail.com>
Subject: [PATCH] staging: rtl8723bs: remove unnecessary braces
Date: Mon, 3 Aug 2026 20:33:29 +0530 [thread overview]
Message-ID: <20260803150329.24065-1-linuxmomin0@gmail.com> (raw)
Remove unnecessary braces around a single-statement 'if' block
in HalPhyRf.c. This resolves the following checkpatch warning:
"WARNING: braces {} are not necessary for single statement blocks"
Signed-off-by: Mohammed Momin <linuxmomin0@gmail.com>
---
drivers/staging/rtl8723bs/hal/HalPhyRf.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/HalPhyRf.c b/drivers/staging/rtl8723bs/hal/HalPhyRf.c
index bf44c1050be5..449db21e8a0b 100644
--- a/drivers/staging/rtl8723bs/hal/HalPhyRf.c
+++ b/drivers/staging/rtl8723bs/hal/HalPhyRf.c
@@ -117,9 +117,8 @@ void ODM_TXPowerTrackingCallback_ThermalMeter(struct adapter *Adapter)
}
/* Calculate Average ThermalValue after average enough times */
- if (ThermalValue_AVG_count) {
+ if (ThermalValue_AVG_count)
ThermalValue = (u8)(ThermalValue_AVG / ThermalValue_AVG_count);
- }
/* 4 5. Calculate delta, delta_LCK */
/* delta" here is used to determine whether thermal value changes or not. */
--
2.55.0
next reply other threads:[~2026-08-03 15:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-03 15:03 Mohammed Momin [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-07-26 9:23 [PATCH] staging: rtl8723bs: remove unnecessary braces Dang Vu Duc Hien
2026-07-28 7:36 ` Greg KH
2026-07-12 15:34 Arsenii Pashchenko
2026-07-01 14:57 Aditya Tipre
2026-07-07 11:33 ` Greg Kroah-Hartman
2026-05-07 17:52 Shivam Gupta
2026-05-10 17:31 ` Nikolay Kulikov
2026-03-04 17:19 Zeynep Dicle
2026-03-05 22:33 ` Ethan Tidmore
2026-01-28 15:44 Louis Lesniak
2019-10-06 23:03 [PATCH] staging: rtl8723bs: Remove " Javier F. Arias
2019-10-06 13:30 Javier F. Arias
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=20260803150329.24065-1-linuxmomin0@gmail.com \
--to=linuxmomin0@gmail.com \
--cc=error27@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.