net: stmmac: Switch to linkmode_and()/linkmode_andnot()
authorJose Abreu <Jose.Abreu@synopsys.com>
Mon, 9 Mar 2020 08:36:21 +0000 (09:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2020 03:13:16 +0000 (20:13 -0700)
commit422829f9f8dbe677d1f9edc0bf1fd679d3f10c25
tree977e3e379ef4f4d3e40095b3c2ade2c1ce691538
parente0fa433db28a2f51696b0fc48994354478ed6628
net: stmmac: Switch to linkmode_and()/linkmode_andnot()

Use the linkmode_and()/linkmode_andnot() helpers to simplify the code.

Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c