summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/lantiq_etop.c
diff options
context:
space:
mode:
authorAleksander Jan Bajkowski <olek2@wp.pl>2021-12-30 02:36:26 +0300
committerDavid S. Miller <davem@davemloft.net>2021-12-30 16:20:23 +0300
commit370509b267fafa3ca7122cf0b91cafadf52cfacc (patch)
tree9db9542b381b5c4e3ebf66f3ec27adfdf2318039 /drivers/net/ethernet/lantiq_etop.c
parentb1cb12a27134bc996bea70b5f3e66d7e7edf297c (diff)
downloadlinux-370509b267fafa3ca7122cf0b91cafadf52cfacc.tar.xz
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/net/ethernet/lantiq_etop.c')
-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)) {