From: Yoshihiro Kaneko Date: Tue, 15 Mar 2016 15:52:16 +0000 (+0900) Subject: ravb: fix result value overwrite X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=38c848c73180fb1d142a39e664b6d9663751f6b2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ravb: fix result value overwrite The result value is overwritten by a return value of ravb_ptp_interrupt(). Signed-off-by: Yoshihiro Kaneko Acked-by: Sergei Shtylyov Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c index 8f2c4fb4c724..4e1a7dba7c4a 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c @@ -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);