mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
tg3: Remove unnecessary spinlock
The spinlock is not needed after conversion of tg3_flags from array to set_bit(). Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com> Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
21e315e15d
commit
cb04be4daa
@ -12108,12 +12108,10 @@ static int tg3_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
|
|||||||
|
|
||||||
device_set_wakeup_enable(dp, wol->wolopts & WAKE_MAGIC);
|
device_set_wakeup_enable(dp, wol->wolopts & WAKE_MAGIC);
|
||||||
|
|
||||||
spin_lock_bh(&tp->lock);
|
|
||||||
if (device_may_wakeup(dp))
|
if (device_may_wakeup(dp))
|
||||||
tg3_flag_set(tp, WOL_ENABLE);
|
tg3_flag_set(tp, WOL_ENABLE);
|
||||||
else
|
else
|
||||||
tg3_flag_clear(tp, WOL_ENABLE);
|
tg3_flag_clear(tp, WOL_ENABLE);
|
||||||
spin_unlock_bh(&tp->lock);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user