From: Alexander Aring Date: Sat, 15 Mar 2014 08:29:04 +0000 (+0100) Subject: at86rf230: move locking state in xmit X-Git-Tag: v3.15-rc1~113^2~140^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e8146189a6c2ba9445b8d848847f2520c6cb028;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index ad296bc..030bf39 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at86rf230.c @@ -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);