[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250730183954.500155-1-vivek.balachandhar@gmail.com>
Date: Wed, 30 Jul 2025 18:39:54 +0000
From: Vivek BalachandharTN <vivek.balachandhar@...il.com>
To: gregkh@...uxfoundation.org
Cc: Markus.Elfring@....de,
linux-kernel@...r.kernel.org,
linux-staging@...ts.linux.dev,
vivek.balachandhar@...il.com
Subject: [PATCH 14/20] staging: rtl8723bs: remove unnecessary parentheses in conditional
Remove redundant parentheses from the check_fwstate() call in an if-condition.
These parentheses are not required and violate the kernel coding style.
Dropping them simplifies the expression without changing its logic.
Signed-off-by: Vivek BalachandharTN <vivek.balachandhar@...il.com>
---
v4:
- Reword the commit message to clarify location and purpose of removed parentheses
- Use imperative mood as recommended
- Remove ambiguous phrase “around the function call”
v3:
- Improved explanation of why the parentheses were removed as per
Markus Elfring's suggestion.
v2:
- Mentioned the wrong version number in the previous patch.
v1:
- Fixed incorrect wording: the change was not around assignment
- Addressed feedback from Markus Elfring.
---
drivers/staging/rtl8723bs/core/rtw_mlme.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c
index b8d72d28178b..7552f7e4d14a 100644
--- a/drivers/staging/rtl8723bs/core/rtw_mlme.c
+++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c
@@ -699,7 +699,7 @@ void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf)
rtw_set_signal_stat_timer(&adapter->recvpriv);
if (pmlmepriv->to_join) {
- if ((check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true)) {
+ if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true) {
if (check_fwstate(pmlmepriv, _FW_LINKED) == false) {
set_fwstate(pmlmepriv, _FW_UNDER_LINKING);
--
2.39.5
Powered by blists - more mailing lists