]> 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)
commite1cbecb6d79221d54abad757754992a3648ed3f3
tree1b2c9f5b7431555480e417bfc1f31aacc32bb964
parent8881d65228e0cb48a935d2868c721ce88aaa1ce9
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: e56f19531221 ("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