diff options
author | Nithin Sujir <nsujir@broadcom.com> | 2013-05-23 13:11:27 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-25 07:23:30 +0200 |
commit | f2068b80ca59d63ca21ee1da829c9fe09f25b08e (patch) | |
tree | 2f643fc00a07c7351dc67ab535774db947f41cd5 /drivers/net/ethernet/broadcom/tg3.c | |
parent | tg3: Fix misplaced empty line (diff) | |
download | linux-f2068b80ca59d63ca21ee1da829c9fe09f25b08e.tar.xz linux-f2068b80ca59d63ca21ee1da829c9fe09f25b08e.zip |
tg3: Remove unnecessary lock around tg3_flag_set
The spinlock was needed when flags used to be a u32 and set/cleared
using bit operations. Now that we use the atomic set_bit, this lock
isn't needed.
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 bd5917d8ffb5..d7755d849e53 100644 --- a/drivers/net/ethernet/broadcom/tg3.c +++ b/drivers/net/ethernet/broadcom/tg3.c @@ -6386,9 +6386,7 @@ static void tg3_tx_recover(struct tg3 *tp) "Please report the problem to the driver maintainer " "and include system chipset information.\n"); - spin_lock(&tp->lock); tg3_flag_set(tp, TX_RECOVERY_PENDING); - spin_unlock(&tp->lock); } static inline u32 tg3_tx_avail(struct tg3_napi *tnapi) |