r8169: improve rtl8169_set_features
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 28 Apr 2018 20:19:15 +0000 (22:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Apr 2018 13:38:19 +0000 (09:38 -0400)
commita3984578bf0ed578085bd3c382867c0121bb1534
treed66e5f1bfb1fc8b0de4cea965dede3455714ad7b
parente66267483eab88a05103f2b9df6a5682b87f38b0
r8169: improve rtl8169_set_features

__rtl8169_set_features is used in rtl8169_set_features only, so we
can inline it. In addition:
- Remove check (features ^ dev->features), __netdev_update_features
  check's already that requested features differ from current ones.
- Don't mask out unsupported flags, there's no benefit in it.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c