summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAleksander Jan Bajkowski <olek2@wp.pl>2021-12-30 00:36:26 +0100
committerDavid S. Miller <davem@davemloft.net>2021-12-30 13:20:23 +0000
commit370509b267fafa3ca7122cf0b91cafadf52cfacc (patch)
tree9db9542b381b5c4e3ebf66f3ec27adfdf2318039 /drivers
parentb1cb12a27134bc996bea70b5f3e66d7e7edf297c (diff)
net: lantiq_etop: remove multiple assignments
Documentation/process/coding-style.rst says (in line 88) "Don't put multiple assignments on a single line either." This patch fixes the coding style issue reported by checkpatch.pl. Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/lantiq_etop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/lantiq_etop.c b/drivers/net/ethernet/lantiq_etop.c
index bec5ef92d3f0..1a5962d118d1 100644
--- a/drivers/net/ethernet/lantiq_etop.c
+++ b/drivers/net/ethernet/lantiq_etop.c
@@ -271,7 +271,8 @@ ltq_etop_hw_init(struct net_device *dev)
int irq = LTQ_DMA_CH0_INT + i;
struct ltq_etop_chan *ch = &priv->ch[i];
- ch->idx = ch->dma.nr = i;
+ ch->dma.nr = i;
+ ch->idx = ch->dma.nr;
ch->dma.dev = &priv->pdev->dev;
if (IS_TX(i)) {