From: Josh Abraham <j.abraham1776@gmail.com>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: ruxandra.radulescu@nxp.com, devel@driverdev.osuosl.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: fsl-dpaa2: Fix multiple assignments should be avoided
Date: Wed, 8 Nov 2017 09:59:36 -0500 [thread overview]
Message-ID: <20171108145936.GA5506@josharch> (raw)
In-Reply-To: <20171108092048.GB22620@kroah.com>
On Wed, Nov 08, 2017 at 10:20:48AM +0100, Greg KH wrote:
> On Tue, Nov 07, 2017 at 07:45:03PM -0500, Joshua Abraham wrote:
> > This patch fixes the checkpatch.pl warning:
> > "CHECK: multiple assignments should be avoided"
> >
> > Signed-off-by: Joshua Abraham <j.abraham1776@gmail.com>
> > ---
> > drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c
> > index 0d8ed002adcb..384218946108 100644
> > --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c
> > +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c
> > @@ -1661,7 +1661,8 @@ static void set_fq_affinity(struct dpaa2_eth_priv *priv)
> > * This may well change at runtime, either through irqbalance or
> > * through direct user intervention.
> > */
> > - rx_cpu = txc_cpu = cpumask_first(&priv->dpio_cpumask);
> > + rx_cpu = cpumask_first(&priv->dpio_cpumask);
> > + txc_cpu = rx_cpu;
>
> The original code here makes much more sense, doesn't it?
>
> Sometimes checkpatch is wrong :)
>
> thanks,
>
> greg k-h
It does make a lot more sense.
I will trust checkpatch less, and my eyes more :)
-Josh
prev parent reply other threads:[~2017-11-08 14:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-08 0:45 [PATCH] staging: fsl-dpaa2: Fix multiple assignments should be avoided Joshua Abraham
2017-11-08 9:20 ` Greg KH
2017-11-08 9:40 ` Dan Carpenter
2017-11-08 11:39 ` Joe Perches
2017-11-08 17:16 ` Randy Dunlap
2017-11-08 17:30 ` Joe Perches
2017-11-08 14:59 ` Josh Abraham [this message]
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=20171108145936.GA5506@josharch \
--to=j.abraham1776@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ruxandra.radulescu@nxp.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