OSDN Git Service

r8169: improve saved_wolopts handling
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 24 Jun 2018 16:39:06 +0000 (18:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jun 2018 07:21:51 +0000 (16:21 +0900)
commit433f9d0ddcc6020ac5ecc91626f12e3e23b52be0
treea5fc462964bb3c6b0fca72ac75e327f8cada2b71
parent92bad8509159b2377b40fe91a6b37f1b4cb63569
r8169: improve saved_wolopts handling

Let's make saved_wolopts a shadow copy of the WoL options. This allows
to simplify the code and get rid of calls to now unneeded function
__rtl8169_get_wol(). However don't remove __rtl8169_get_wol()
completely to be prepared for the case that we can respect BIOS WOL
settings again.

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