summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNithin Sujir <nsujir@broadcom.com>2013-09-20 16:47:01 -0700
committerDavid S. Miller <davem@davemloft.net>2013-09-21 14:04:52 -0400
commitcb04be4daacfd1fa0d1998e91390c1c2edda7a5d (patch)
tree93279ac2818e97b677fd47366a3089cdd2d8fb92 /drivers
parent21e315e15dfc5b392998352e9c3492b8a58672c1 (diff)
downloadlinux-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')
-rw-r--r--drivers/net/ethernet/broadcom/tg3.c2
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;
}