r8169: improve rtl8169_rx_fill
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 23 Oct 2019 19:36:14 +0000 (21:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Oct 2019 03:28:59 +0000 (20:28 -0700)
commite4b5c7a582a75f1de54620447854bc5a29011637
treea5990771c79689017906e71001d20c430042836b
parent7cb83b21fd3bb9a27b1a00a2a8b436761e969f0b
r8169: improve rtl8169_rx_fill

We have only one user of the error path, so we can inline it.
In addition the call to rtl8169_make_unusable_by_asic() can be removed
because rtl8169_alloc_rx_data() didn't call rtl8169_mark_to_asic() yet
for the respective index if returning NULL.

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