]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: factor out rtl8169_tx_map
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 29 Mar 2020 23:53:39 +0000 (01:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Mar 2020 18:50:20 +0000 (11:50 -0700)
commit38dc3e58e23698a2249e54421507a31606b433d7
treef4c66316ca83a33f0a24254184f98a6b46bd9d09
parent93e18ffa06e28ca156fb81c84d3a9989355a8087
r8169: factor out rtl8169_tx_map

Factor out mapping the tx skb to a new function rtl8169_tx_map(). This
allows to remove redundancies, and rtl8169_get_txd_opts1() has only
one user left, so it can be inlined.
As a result rtl8169_xmit_frags() is significantly simplified, and in
rtl8169_start_xmit() the code is simplified and better readable.
No functional change intended.

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