[PATCH] staging: rtl8723bs: fix comparison to true in dequeue_xmitframes_to_sleeping_queue
From: Souag-Ahmed-El-fatih
Date: Mon Aug 10 2026 - 17:00:35 EST
Replace "if (true == ret)" with "if (ret)" as flagged by
checkpatch.pl. This follows standard kernel style and avoids
the error-prone Yoda-style boolean comparison.
Signed-off-by: Souag-Ahmed-El-fatih <souagahmedelfatih@xxxxxxxxx>
---
drivers/staging/rtl8723bs/core/rtw_xmit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_xmit.c b/drivers/staging/rtl8723bs/core/rtw_xmit.c
index 444966c0d..0aa59a5d2 100644
--- a/drivers/staging/rtl8723bs/core/rtw_xmit.c
+++ b/drivers/staging/rtl8723bs/core/rtw_xmit.c
@@ -2170,7 +2170,7 @@ static void dequeue_xmitframes_to_sleeping_queue(struct adapter *padapter, struc
ret = xmitframe_enqueue_for_sleeping_sta(padapter, pxmitframe);
- if (true == ret) {
+ if (ret) {
ptxservq = rtw_get_sta_pending(padapter, psta, pattrib->priority, (u8 *)(&ac_index));
ptxservq->qcnt--;
--
2.47.3