net: phy: Make use of linkmode_mod_bit helper
authorFuqian Huang <huangfq.daxian@gmail.com>
Mon, 8 Jul 2019 12:34:17 +0000 (20:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jul 2019 03:10:34 +0000 (20:10 -0700)
commitccf355e52a3265624b7acadd693c849d599e9b9f
treed75b3dad06834d5c433a0ab583380de2bef8827f
parent88e2f2846d901e1d61e99ac1d06544d41f478430
net: phy: Make use of linkmode_mod_bit helper

linkmode_mod_bit is introduced as a helper function to set/clear
bits in a linkmode.
Replace the if else code structure with a call to the helper
linkmode_mod_bit.

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c