r8169: inline rtl8169_free_rx_databuff
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 9 Aug 2019 20:59:07 +0000 (22:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Aug 2019 04:25:30 +0000 (21:25 -0700)
commiteb2e7f092271091f774a20c0c3b8df3c8c52e060
tree53e2fecc227f761337f29ff9fd6be651ee0c529f
parentd35bbe84c12e9516ed6d626ca045a92a78248be7
r8169: inline rtl8169_free_rx_databuff

rtl8169_free_rx_databuff is used in only one place, so let's inline it.
We can improve the loop because rtl8169_init_ring zero's RX_databuff
before calling rtl8169_rx_fill, and rtl8169_rx_fill fills
Rx_databuff starting from index 0.

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