Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723bs: clean up redundant parentheses in rtw_mlme.c
@ 2025-12-15 21:09 Darshil Shah
  2025-12-17 13:09 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Darshil Shah @ 2025-12-15 21:09 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging, linux-kernel, Darshil Shah

- Removed unnecessary parentheses around if conditions
- Removed redundant '== true' and '== false' comparisons

Signed-off-by: Darshil Shah <darshilshah7070@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_mlme.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c
index 98704179ad35..e10f60d46dba 100644
--- a/drivers/staging/rtl8723bs/core/rtw_mlme.c
+++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c
@@ -710,8 +710,8 @@ 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, _FW_LINKED) == false) {
+		if (check_fwstate(pmlmepriv, WIFI_ADHOC_STATE)) {
+			if (!check_fwstate(pmlmepriv, _FW_LINKED)) {
 				set_fwstate(pmlmepriv, _FW_UNDER_LINKING);
 
 				if (rtw_select_and_join_from_scanned_queue(pmlmepriv) == _SUCCESS) {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-12-17 13:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-15 21:09 [PATCH] staging: rtl8723bs: clean up redundant parentheses in rtw_mlme.c Darshil Shah
2025-12-17 13:09 ` Greg KH
     [not found]   ` <CAGQ2yWkLp62n+KbA9fEhGJXxK7o_XiM8Xi0Zu==J+ko45h-QFw@mail.gmail.com>
2025-12-17 13:44     ` Darshil Shah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox