Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb04be4d authored by Nithin Sujir's avatar Nithin Sujir Committed by David S. Miller
Browse files

tg3: Remove unnecessary spinlock



The spinlock is not needed after conversion of tg3_flags from array to
set_bit().

Signed-off-by: default avatarNithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 21e315e1
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);

	spin_lock_bh(&tp->lock);
	if (device_may_wakeup(dp))
		tg3_flag_set(tp, WOL_ENABLE);
	else
		tg3_flag_clear(tp, WOL_ENABLE);
	spin_unlock_bh(&tp->lock);

	return 0;
}