mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
net: ngbe: remove netdev->ethtool->wol_enabled setting
netdev->ethtool->wol_enabled is set in ethtool core code, so remove the redundant setting in ngbe_set_wol(). Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com> Reviewed-by: Breno Leitao <leitao@debian.org> Reviewed-by: Joe Damato <joe@dama.to> Link: https://patch.msgid.link/20260407025616.33652-2-jiawenwu@trustnetic.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
436e9e48ca
commit
4d19654dac
|
|
@ -37,9 +37,8 @@ static int ngbe_set_wol(struct net_device *netdev,
|
|||
wx->wol = 0;
|
||||
if (wol->wolopts & WAKE_MAGIC)
|
||||
wx->wol = WX_PSR_WKUP_CTL_MAG;
|
||||
netdev->ethtool->wol_enabled = !!(wx->wol);
|
||||
wr32(wx, WX_PSR_WKUP_CTL, wx->wol);
|
||||
device_set_wakeup_enable(&pdev->dev, netdev->ethtool->wol_enabled);
|
||||
device_set_wakeup_enable(&pdev->dev, !!(wx->wol));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user