]> 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)
commit91e606312f9cdc868b4eb9b0952bc61c5e5a159d
tree1b2c9f5b7431555480e417bfc1f31aacc32bb964
parent638b46f7f885632df60c97598468746a1e88090f
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: 520544871945 ("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