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

Commit 7e814618 authored by Alexander Aring's avatar Alexander Aring Committed by David S. Miller
Browse files

at86rf230: move locking state in xmit



There is no need to lock the clearing of IRQ_TRX_END in status.

Signed-off-by: default avatarAlexander Aring <alex.aring@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7332fcb8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -914,8 +914,8 @@ static void at86rf230_irqwork(struct work_struct *work)
	status &= ~IRQ_TRX_UR; /* FIXME: possibly handle ???*/

	if (status & IRQ_TRX_END) {
		spin_lock_irqsave(&lp->lock, flags);
		status &= ~IRQ_TRX_END;
		spin_lock_irqsave(&lp->lock, flags);
		if (lp->is_tx) {
			lp->is_tx = 0;
			spin_unlock_irqrestore(&lp->lock, flags);