Re: [PATCH 2/3] staging: rtl8723bs: Use true/false instead of 1/0

From: Julia Lawall
Date: Wed Apr 02 2025 - 08:56:17 EST




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@xxxxxxxxx>
> ---
> 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
>
>
>