All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <error27@gmail.com>
To: Eugene Mavick <mavick4022@gmail.com>
Cc: gregkh@linuxfoundation.org, khomenkov@mailbox.org,
	tomasz.unger@yahoo.pl, arthur.stupa@gmail.com,
	jannik@jrehkemper.de, linux-staging@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] staging: rtl8723bs: remove unnecessary parentheses
Date: Mon, 1 Jun 2026 14:29:00 +0300	[thread overview]
Message-ID: <ah1s_Eveaka0SHvQ@stanley.mountain> (raw)
In-Reply-To: <20260531061022.573089-1-mavick4022@gmail.com>

On Sun, May 31, 2026 at 02:10:22PM +0800, Eugene Mavick wrote:
> Remove unnecessary parentheses to clear checkpatch.pl warnings
> 
> Example of fixed warnings:
> CHECK: Unnecessary parentheses around dvobj->cam_cache[id]
> CHECK: Unnecessary parentheses around 'val != 0xfe'
> 
> Checkpatch warnings regarding line length above 100 columns on modified
> lines were also fixed
> 
> Signed-off-by: Eugene Mavick <mavick4022@gmail.com>
> ---
> V1->V2:
> Fixed following checkpatch warnings on modified lines:
> CHECK: Alignment should match open parenthesis(line 1114, 1249)
> CHECK: Logical continuations should be on the previous line(line 1251)
> 
> v1: https://lore.kernel.org/all/20260530031621.443015-1-mavick4022@gmail.com/
> 
>  .../staging/rtl8723bs/core/rtw_wlan_util.c    | 93 ++++++++++---------
>  1 file changed, 49 insertions(+), 44 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
> index 1d37c2d5b10d..84e9772a39c2 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
> @@ -118,7 +118,7 @@ int is_basicrate(struct adapter *padapter, unsigned char rate)
>  	for (i = 0; i < NumRates; i++) {
>  		val = pmlmeext->basicrate[i];
>  
> -		if ((val != 0xff) && (val != 0xfe))
> +		if (val != 0xff && val != 0xfe)

Just leave this one as-is.  (staging rules).  We deliberately silenced
this checkpatch warning so it's weird for checkpatch to complain.
Same for the other conditions.

>  			if (rate == ratetbl_val_2wifirate(val))
>  				return true;
>  	}
> @@ -351,7 +351,7 @@ int is_client_associated_to_ap(struct adapter *padapter)
>  		return _FAIL;
>  
>  	pmlmeext = &padapter->mlmeextpriv;
> -	pmlmeinfo = &(pmlmeext->mlmext_info);
> +	pmlmeinfo = &pmlmeext->mlmext_info;

These changes are fine though.  Can you resend without the condtion
changes?

regards,
dan carpenter


  reply	other threads:[~2026-06-01 11:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-30  3:16 [PATCH] staging: rtl8723bs: remove unnecessary parentheses Eugene Mavick
2026-05-31  6:10 ` [PATCH v2] " Eugene Mavick
2026-06-01 11:29   ` Dan Carpenter [this message]
     [not found]   ` <20260603080105.780648-1-m@mavick.dev>
2026-06-03  8:44     ` [PATCH v3] " Dan Carpenter
     [not found]       ` <DIZB2839PXFV.3A5L73XAO2X67@mavick.dev>
2026-06-03 10:18         ` Dan Carpenter
2026-06-04  4:51         ` [PATCH v4] " Eugene Mavick
2026-06-04  5:29           ` Dan Carpenter
2026-06-04  7:49           ` [PATCH v5] " Eugene Mavick
2026-06-04  7:54             ` Dan Carpenter
2026-06-04  9:56             ` [PATCH v6] " Eugene Mavick

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=ah1s_Eveaka0SHvQ@stanley.mountain \
    --to=error27@gmail.com \
    --cc=arthur.stupa@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jannik@jrehkemper.de \
    --cc=khomenkov@mailbox.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=mavick4022@gmail.com \
    --cc=tomasz.unger@yahoo.pl \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.