]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: remove unneeded check from rtl_link_chg_patch
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 15 Feb 2020 13:48:03 +0000 (14:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Feb 2020 03:36:05 +0000 (19:36 -0800)
commitd0dae3e4a4cdce79f828e6c21beea6b43b8890c1
treec03c46e4a81ae7918d0b43283bbae6399dd24410
parent4d474a2473df23ed35cf834be6644521ed6b49e9
r8169: remove unneeded check from rtl_link_chg_patch

rtl_link_chg_patch() can be called from rtl_open() to rtl8169_close()
only. And in rtl8169_close() phy_stop() ensures that this function
isn't called afterwards. So we don't need this check.

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