mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Julia Lawall <julia.lawall@inria.fr>
To: Erick Karanja <karanja99erick@gmail.com>
Cc: gregkh@linuxfoundation.org, outreachy@lists.linux.dev,
	 philipp.g.hortmann@gmail.com, linux-staging@lists.linux.dev,
	 linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] staging: rtl8723bs: Use true/false instead of 1/0
Date: Wed, 2 Apr 2025 14:54:58 +0200 (CEST)	[thread overview]
Message-ID: <40862a76-94bb-bf75-c3ee-8042404ea235@inria.fr> (raw)
In-Reply-To: <eca5a63d92f5bbbecb642d324a5e0641f697d0bf.1743596287.git.karanja99erick@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1472 bytes --]



On Wed, 2 Apr 2025, Erick Karanja wrote:

> Standardize boolean representation by replacing 1/0
> with true/false in cases where boolean logic is implied.
> This improves code clarity and aligns with the kernel’s bool type usage.

It would be nice to point out that true/false is used elsewhere in this
file for this structure field.  We can't see this in the patch.

julia

>
> Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
> ---
>  drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
> index 952ce6dd5af9..8f2c9c3e853c 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
> @@ -1173,7 +1173,7 @@ unsigned int OnAssocReq(struct adapter *padapter, union recv_frame *precv_frame)
>
>  	/*  check if there is WMM IE & support WWM-PS */
>  	pstat->flags &= ~WLAN_STA_WME;
> -	pstat->qos_option = 0;
> +	pstat->qos_option = false;
>  	pstat->qos_info = 0;
>  	pstat->has_legacy_ac = true;
>  	pstat->uapsd_vo = 0;
> @@ -1189,7 +1189,7 @@ unsigned int OnAssocReq(struct adapter *padapter, union recv_frame *precv_frame)
>
>  					pstat->flags |= WLAN_STA_WME;
>
> -					pstat->qos_option = 1;
> +					pstat->qos_option = true;
>  					pstat->qos_info = *(p+8);
>
>  					pstat->max_sp_len = (pstat->qos_info>>5)&0x3;
> --
> 2.43.0
>
>
>

  reply	other threads:[~2025-04-02 12:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-02 12:47 [PATCH 0/3] staging: rtl8723bs: Code cleanup patches Erick Karanja
2025-04-02 12:47 ` [PATCH 1/3] staging: rtl8723bs: Use true/false instead of 1/0 Erick Karanja
2025-04-02 12:54   ` Julia Lawall
2025-04-02 12:47 ` [PATCH 2/3] " Erick Karanja
2025-04-02 12:54   ` Julia Lawall [this message]
2025-04-02 12:47 ` [PATCH 3/3] " Erick Karanja
2025-04-02 12:55   ` Julia Lawall

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=40862a76-94bb-bf75-c3ee-8042404ea235@inria.fr \
    --to=julia.lawall@inria.fr \
    --cc=gregkh@linuxfoundation.org \
    --cc=karanja99erick@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=outreachy@lists.linux.dev \
    --cc=philipp.g.hortmann@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

all inboxes | Powered by JetHome®