OSDN Git Service

net: mii: mii_lpa_mod_linkmode_lpa_t: Make use of linkmode_mod_bit helper
authorAndrew Lunn <andrew@lunn.ch>
Wed, 5 Dec 2018 20:49:44 +0000 (21:49 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Dec 2018 00:26:16 +0000 (16:26 -0800)
commit6dbd0090f999c443763c0742b574da1ce189404c
tree64f58ed614f1c578b8ffbd3577e6ca7b85d9487e
parentd3351931a37bdb329b5ea761424579fa91c866ee
net: mii: mii_lpa_mod_linkmode_lpa_t: Make use of linkmode_mod_bit helper

Replace the if else code structure with a call to the helper
linkmode_mod_bit.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mii.h