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

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

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: 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 7c10ee32
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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)