mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 07:33:56 +00:00
at86rf230: move locking state in xmit
There is no need to lock the clearing of IRQ_TRX_END in status. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7332fcb82a
commit
7e8146189a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user