提交 38c848c7 编写于 作者: Y Yoshihiro Kaneko 提交者: David S. Miller

ravb: fix result value overwrite

The result value is overwritten by a return value of
ravb_ptp_interrupt().
Signed-off-by: NYoshihiro Kaneko <ykaneko0929@gmail.com>
Acked-by: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 2c9a266a
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册