r8169: simplify setting PCI_EXP_DEVCTL_NOSNOOP_EN
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 21 Oct 2019 19:22:42 +0000 (21:22 +0200)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 22 Oct 2019 18:27:01 +0000 (11:27 -0700)
commite0bbe7cbb3c5ff72d680993edf89db2391e80d5d
tree62d2dad9f1804a0f995b2eeadfadc8429bcbb8c2
parent2df49d36549808a7357ad9f78b7a8e39516e7809
r8169: simplify setting PCI_EXP_DEVCTL_NOSNOOP_EN

r8168b_0_hw_jumbo_enable() and r8168b_0_hw_jumbo_disable() both do the
same and just set PCI_EXP_DEVCTL_NOSNOOP_EN. We can simplify the code
by moving this setting for RTL8168B to rtl_hw_start_8168().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/ethernet/realtek/r8169_main.c