diff options
author | Nithin Sujir <nsujir@broadcom.com> | 2013-09-20 16:47:01 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-21 14:04:52 -0400 |
commit | cb04be4daacfd1fa0d1998e91390c1c2edda7a5d (patch) | |
tree | 93279ac2818e97b677fd47366a3089cdd2d8fb92 /drivers/net/ethernet/broadcom/tg3.c | |
parent | 21e315e15dfc5b392998352e9c3492b8a58672c1 (diff) | |
download | linux-stable-cb04be4daacfd1fa0d1998e91390c1c2edda7a5d.tar.gz linux-stable-cb04be4daacfd1fa0d1998e91390c1c2edda7a5d.tar.bz2 linux-stable-cb04be4daacfd1fa0d1998e91390c1c2edda7a5d.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/broadcom/tg3.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/tg3.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c index 6fd86457630a..4c949eea5d0d 100644 --- a/drivers/net/ethernet/broadcom/tg3.c +++ b/drivers/net/ethernet/broadcom/tg3.c @@ -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; } |