r8169: remove not needed check in rtl8169_start_xmit
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 17 Nov 2020 20:34:09 +0000 (21:34 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 Nov 2020 01:26:31 +0000 (17:26 -0800)
commitbd4bdeb4f29027199c68104fbdfa07ad45390cc1
tree3db253484cb499d3e20a3aaee9b9077c49496c69
parent281cc2843b180fe99c9b9999a625682e9cad5278
r8169: remove not needed check in rtl8169_start_xmit

In rtl_tx() the released descriptors are zero'ed by
rtl8169_unmap_tx_skb(). And in the beginning of rtl8169_start_xmit()
we check that enough descriptors are free, therefore there's no way
the DescOwn bit can be set here.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/6965d665-6c50-90c5-70e6-0bb335d4ea47@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c