From: Greg KH <gregkh@linuxfoundation.org>
To: Khushal Chitturi <khushalchitturi@gmail.com>
Cc: dan.carpenter@linaro.org, straube.linux@gmail.com,
hansg@kernel.org, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6 3/4] staging: rtl8723bs: simplify boolean expressions
Date: Sat, 7 Feb 2026 14:13:05 +0100 [thread overview]
Message-ID: <2026020744-dweeb-wimp-dba0@gregkh> (raw)
In-Reply-To: <20260201113837.8531-4-khushalchitturi@gmail.com>
On Sun, Feb 01, 2026 at 05:08:36PM +0530, Khushal Chitturi wrote:
> Simplify boolean expressions across rtl8723bs to comply
> with the kernel coding style.
>
> Signed-off-by: Khushal Chitturi <khushalchitturi@gmail.com>
>
> ---
> Changelog:
> v5 -> v6: Extend boolean simplification to ioctl_cfg80211.c and
> rtw_ioctl_set.c
> v4 -> v5: Rebased onto current staging-testing.
> v3 -> v4: Fixed alignment and removed extra parentheses.
> v2 -> v3: Resubmitted as a versioned series to avoid threading confusion.
> v1 -> v2: Corrected commit messages.
>
> .../staging/rtl8723bs/core/rtw_ioctl_set.c | 63 +++++++++----------
> drivers/staging/rtl8723bs/core/rtw_xmit.c | 40 ++++++------
> .../staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 14 ++---
> 3 files changed, 58 insertions(+), 59 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c b/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c
> index 2d37ac4c50ef..dab20b8a9b18 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c
> @@ -61,14 +61,11 @@ u8 rtw_do_join(struct adapter *padapter)
> /* when set_ssid/set_bssid for rtw_do_join(), but scanning queue is empty */
> /* we try to issue sitesurvey firstly */
>
> - if (pmlmepriv->link_detect_info.busy_traffic == false
> - || rtw_to_roam(padapter) > 0
> - ) {
> + if (!pmlmepriv->link_detect_info.busy_traffic || rtw_to_roam(padapter) > 0) {
> /* submit site_survey_cmd */
> ret = rtw_sitesurvey_cmd(padapter, &pmlmepriv->assoc_ssid, 1, NULL, 0);
> if (ret != _SUCCESS)
> pmlmepriv->to_join = false;
> -
> } else {
You also removed blank lines without mentioning it :(
Again, please only do one logical thing per change.
thanks,
greg k-h
next prev parent reply other threads:[~2026-02-07 13:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-01 11:38 [PATCH v6 0/4] staging: rtl8723bs: coding style and refactoring cleanups Khushal Chitturi
2026-02-01 11:38 ` [PATCH v6 1/4] staging: rtl8723bs: rename LinkDetectInfo and clean up related code Khushal Chitturi
2026-02-07 13:11 ` Greg KH
2026-02-01 11:38 ` [PATCH v6 2/4] staging: rtl8723bs: convert traffic status variables to bool Khushal Chitturi
2026-02-01 11:38 ` [PATCH v6 3/4] staging: rtl8723bs: simplify boolean expressions Khushal Chitturi
2026-02-07 13:13 ` Greg KH [this message]
2026-02-01 11:38 ` [PATCH v6 4/4] staging: rtl8723bs: fix line length and alignment issues Khushal Chitturi
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=2026020744-dweeb-wimp-dba0@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=dan.carpenter@linaro.org \
--cc=hansg@kernel.org \
--cc=khushalchitturi@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=straube.linux@gmail.com \
/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