r8169: improve rtl_coalesce_info
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 11 Jun 2019 19:09:19 +0000 (21:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jun 2019 05:43:53 +0000 (22:43 -0700)
commit20023d3e5071a49c530df239c694b2dcefd97597
tree1833c1603179a8cb49555ca1fd4633cd77c1902a
parent9b994b4a074c5d1daea0e9d4eb83e0372a3337e5
r8169: improve rtl_coalesce_info

tp->coalesce_info is used in rtl_coalesce_info() only, so we can
remove this member. In addition replace phy_ethtool_get_link_ksettings
with a direct access to tp->phydev->speed.

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