The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Jinke Wu <coolbeaner@126.com>
To: gregkh@linuxfoundation.org
Cc: error27@gmail.com, linux-staging@lists.linux.dev,
	linux-kernel@vger.kernel.org, coolbeaner@126.com
Subject: [PATCH v2 5/5] staging: rtl8723bs: simplify boolean comparison in send_beacon
Date: Wed,  8 Jul 2026 01:14:50 +0800	[thread overview]
Message-ID: <20260707171450.70997-6-coolbeaner@126.com> (raw)
In-Reply-To: <20260707171450.70997-1-coolbeaner@126.com>

Simplify the boolean comparison in the do-while loop condition within
send_beacon() by using the logical NOT (!) operator instead of an explicit
comparison with false.

No functional change.

Signed-off-by: Jinke Wu <coolbeaner@126.com>
---
 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
index 3a1ff22a8a75..ade7b42abc97 100644
--- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
+++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
@@ -3687,7 +3687,7 @@ unsigned int send_beacon(struct adapter *padapter)
 			cond_resched();
 			rtw_hal_get_hwreg(padapter, HW_VAR_BCN_VALID, (u8 *)(&bxmitok));
 			poll++;
-		} while ((poll % 10) != 0 && false == bxmitok &&
+		} while ((poll % 10) != 0 && !bxmitok &&
 			 !padapter->bSurpriseRemoved &&
 			 !padapter->bDriverStopped);
 
-- 
2.34.1


  parent reply	other threads:[~2026-07-07 17:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-07 17:14 [PATCH v2 0/5] staging: rtl8723bs: clean up coding style in rtw_mlme_ext Jinke Wu
2026-07-07 17:14 ` [PATCH v2 1/5] staging: rtl8723bs: fix operator spacing " Jinke Wu
2026-07-07 17:14 ` [PATCH v2 2/5] staging: rtl8723bs: fix line length and alignment " Jinke Wu
2026-07-07 17:14 ` [PATCH v2 3/5] staging: rtl8723bs: split nested assignment in OnAssocRsp Jinke Wu
2026-07-07 17:14 ` [PATCH v2 4/5] staging: rtl8723bs: remove unnecessary parentheses in issue_asocrsp Jinke Wu
2026-07-07 17:14 ` Jinke Wu [this message]
2026-07-08  5:02 ` [PATCH v2 0/5] staging: rtl8723bs: clean up coding style in rtw_mlme_ext Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260707171450.70997-6-coolbeaner@126.com \
    --to=coolbeaner@126.com \
    --cc=error27@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox