]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: Fix dumplicated argument in ocelot
authorWan Jiabing <wanjiabing@vivo.com>
Mon, 11 Oct 2021 02:27:41 +0000 (10:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Oct 2021 10:21:55 +0000 (11:21 +0100)
commit74a3bc42fe514098030a78c1ad5e6024463dd378
tree1b2c9f5b7431555480e417bfc1f31aacc32bb964
parent0edf0824e0dc359ed76bf96af986e6570ca2c0b9
net: mscc: ocelot: Fix dumplicated argument in ocelot

Fix the following coccicheck warning:
drivers/net/ethernet/mscc/ocelot.c:474:duplicated argument to & or |
drivers/net/ethernet/mscc/ocelot.c:476:duplicated argument to & or |
drivers/net/ethernet/mscc/ocelot_net.c:1627:duplicated argument
to & or |

These DEV_CLOCK_CFG_MAC_TX_RST are duplicate here.
Here should be DEV_CLOCK_CFG_MAC_RX_RST.

Fixes: e6e12df625f2 ("net: mscc: ocelot: convert to phylink")
Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.c
drivers/net/ethernet/mscc/ocelot_net.c