at86rf230: move locking state in xmit
authorAlexander Aring <alex.aring@gmail.com>
Sat, 15 Mar 2014 08:29:04 +0000 (09:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Mar 2014 20:10:25 +0000 (16:10 -0400)
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>
drivers/net/ieee802154/at86rf230.c

index ad296bc..030bf39 100644 (file)
@@ -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);