[PATCH] staging: rtl8723bs: fix comparison to true in dequeue_xmitframes_to_sleeping_queue

Souag-Ahmed-El-fatih posted 1 patch 1 month, 2 weeks ago
drivers/staging/rtl8723bs/core/rtw_xmit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] staging: rtl8723bs: fix comparison to true in dequeue_xmitframes_to_sleeping_queue
Posted by Souag-Ahmed-El-fatih 1 month, 2 weeks ago
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@gmail.com>
---
 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