mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
ravb: fix result value overwrite
The result value is overwritten by a return value of ravb_ptp_interrupt(). Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com> Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2c9a266afe
commit
38c848c731
1 changed files with 2 additions and 2 deletions
|
@ -757,8 +757,8 @@ static irqreturn_t ravb_interrupt(int irq, void *dev_id)
|
|||
result = IRQ_HANDLED;
|
||||
}
|
||||
|
||||
if (iss & ISS_CGIS)
|
||||
result = ravb_ptp_interrupt(ndev);
|
||||
if ((iss & ISS_CGIS) && ravb_ptp_interrupt(ndev) == IRQ_HANDLED)
|
||||
result = IRQ_HANDLED;
|
||||
|
||||
mmiowb();
|
||||
spin_unlock(&priv->lock);
|
||||
|
|
Loading…
Reference in a new issue