Skip to content

Commit f2068b8

Browse files
Nithin Sujirdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7c10ee3 commit f2068b8

File tree

1 file changed

+0
-2
lines changed
  • drivers/net/ethernet/broadcom

1 file changed

+0
-2
lines changed

drivers/net/ethernet/broadcom/tg3.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6386,9 +6386,7 @@ static void tg3_tx_recover(struct tg3 *tp)
63866386
"Please report the problem to the driver maintainer "
63876387
"and include system chipset information.\n");
63886388

6389-
spin_lock(&tp->lock);
63906389
tg3_flag_set(tp, TX_RECOVERY_PENDING);
6391-
spin_unlock(&tp->lock);
63926390
}
63936391

63946392
static inline u32 tg3_tx_avail(struct tg3_napi *tnapi)

0 commit comments

Comments
 (0)