projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1cb12a
)
net: lantiq_etop: remove multiple assignments
author
Aleksander Jan Bajkowski
<olek2@wp.pl>
Wed, 29 Dec 2021 23:36:26 +0000
(
00:36
+0100)
committer
David S. Miller
<davem@davemloft.net>
Thu, 30 Dec 2021 13:20:23 +0000
(13:20 +0000)
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>
drivers/net/ethernet/lantiq_etop.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/lantiq_etop.c
b/drivers/net/ethernet/lantiq_etop.c
index bec5ef92d3f07b23da03e100a8a36d94c3b378ed..1a5962d118d163a65a7b080624a7aa0efa66beb7 100644
(file)
--- 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)) {