From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Prithvi <activprithvi@gmail.com>
Cc: gregkh@linuxfoundation.org, straube.linux@gmail.com,
ethantidmore06@gmail.com, dan.carpenter@linaro.org,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-kernel-mentees@lists.linux.dev, skhan@linuxfoundation.org,
david.hunter.linux@gmail.com, khalid@kernel.org
Subject: Re: [PATCH] staging: rtl8723bs: place constant on right side of equality operator
Date: Mon, 23 Mar 2026 15:33:50 +0200 [thread overview]
Message-ID: <acFBPuCNpD_MNKwR@ashevche-desk.local> (raw)
In-Reply-To: <20260323132235.sg6fw2azr724g7un@inspiron>
On Mon, Mar 23, 2026 at 06:52:35PM +0530, Prithvi wrote:
> On Mon, Mar 23, 2026 at 11:19:40AM +0200, Andy Shevchenko wrote:
> > On Sat, Mar 21, 2026 at 02:55:36PM +0530, Prithvi Tambewagh wrote:
> > > Place constant 0xFF on right side of equality operator when checking
> > > value of hw_channel_plan to fix checkpatch.pl warning and conform with
> > > the Linux Kernel coding style.
> >
> > First of all, in the very same function there are more of a such.
> > And hence the Q: have you checked the entire driver? Please do.
> Thanks for the correction...While checking out other places requiring similar
> change, I observed the other place in the function where constant is on left
> side of equality operator:
>
> if (
> (false == pHalData->bDisableSWChannelPlan) &&
> rtw_is_channel_plan_valid(sw_channel_plan)
> )
> chnlPlan = sw_channel_plan;
>
> Here, the formatting of if statement can be improved and we can also replace
> (false == pHalData->bDisableSWChannelPlan) with :
>
> !pHalData->bDisableSWChannelPlan
>
> Would it be alright to add these changes to v2 of this patch itself since
> they are related to the code having constant on left side of == operator?
Yes, but I also meant to go through more files in this driver for the same
style issue.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2026-03-23 13:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-21 9:25 [PATCH] staging: rtl8723bs: place constant on right side of equality operator Prithvi Tambewagh
2026-03-23 9:19 ` Andy Shevchenko
2026-03-23 13:22 ` Prithvi
2026-03-23 13:33 ` Andy Shevchenko [this message]
2026-03-23 14:52 ` Prithvi
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=acFBPuCNpD_MNKwR@ashevche-desk.local \
--to=andriy.shevchenko@linux.intel.com \
--cc=activprithvi@gmail.com \
--cc=dan.carpenter@linaro.org \
--cc=david.hunter.linux@gmail.com \
--cc=ethantidmore06@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=khalid@kernel.org \
--cc=linux-kernel-mentees@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=skhan@linuxfoundation.org \
--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