public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] staging: rtl8723bs: simplify boolean test in rtw_btcoex_MediaStatusNotify
@ 2026-02-08 17:51 Azamat Rakhim
  2026-02-08 17:51 ` [PATCH v2 2/2] staging: rtl8723bs: remove extra blank lines in rtw_btcoex.c Azamat Rakhim
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Azamat Rakhim @ 2026-02-08 17:51 UTC (permalink / raw)
  To: gregkh; +Cc: karanja99erick, linux-staging, linux-kernel, Azamat Rakhim

Remove unnecessary comparison to true and move logical operator
to the end of the previous line.

Signed-off-by: Azamat Rakhim <azamatrakhim8@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_btcoex.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_btcoex.c b/drivers/staging/rtl8723bs/core/rtw_btcoex.c
index f4b19ef7b341..444a602d2868 100644
--- a/drivers/staging/rtl8723bs/core/rtw_btcoex.c
+++ b/drivers/staging/rtl8723bs/core/rtw_btcoex.c
@@ -10,8 +10,8 @@
 
 void rtw_btcoex_MediaStatusNotify(struct adapter *padapter, u8 media_status)
 {
-	if ((media_status == RT_MEDIA_CONNECT)
-		&& (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == true)) {
+	if ((media_status == RT_MEDIA_CONNECT) &&
+	    check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE)) {
 		rtw_hal_set_hwreg(padapter, HW_VAR_DL_RSVD_PAGE, NULL);
 	}
 
-- 
2.52.0


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

end of thread, other threads:[~2026-02-09  6:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-08 17:51 [PATCH v2 1/2] staging: rtl8723bs: simplify boolean test in rtw_btcoex_MediaStatusNotify Azamat Rakhim
2026-02-08 17:51 ` [PATCH v2 2/2] staging: rtl8723bs: remove extra blank lines in rtw_btcoex.c Azamat Rakhim
2026-02-08 21:22   ` Ethan Tidmore
2026-02-08 21:21 ` [PATCH v2 1/2] staging: rtl8723bs: simplify boolean test in rtw_btcoex_MediaStatusNotify Ethan Tidmore
2026-02-09  6:49 ` Greg KH

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