public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: fsl-dpaa2: Fix multiple assignments should be avoided
@ 2017-11-08  0:45 Joshua Abraham
  2017-11-08  9:20 ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Joshua Abraham @ 2017-11-08  0:45 UTC (permalink / raw)
  To: ruxandra.radulescu; +Cc: gregkh, devel, linux-kernel, j.abraham1776

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;
 
 	for (i = 0; i < priv->num_fqs; i++) {
 		fq = &priv->fq[i];
-- 
2.15.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-11-08 17:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox