r8169: inline rtl8169_make_unusable_by_asic
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 19 Apr 2020 21:16:55 +0000 (23:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Apr 2020 19:27:14 +0000 (12:27 -0700)
commit9d3679fe0f30b5a4c1ae6303611c9f2bbeb9961d
treef655ad709f64d9783d43787a9d3f25e208afb075
parent2ac1fa439ee97aaaa124c37340a316918bb0a8bc
r8169: inline rtl8169_make_unusable_by_asic

Inline rtl8169_make_unusable_by_asic() and simplify it:
- Address field doesn't need to be poisoned because descriptor is
  owned by CPU now
- desc->opts1 is set by rtl8169_mark_to_asic() and rtl8169_rx_fill(),
  therefore we don't have to preserve any field parts.

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