diff options
author | Yoshihiro Kaneko <ykaneko0929@gmail.com> | 2016-03-15 16:52:16 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-19 00:16:33 +0100 |
commit | 38c848c73180fb1d142a39e664b6d9663751f6b2 (patch) | |
tree | 64fb6be6f3704ed1a9756db48ccfaa281b136f2b /drivers/net/ethernet | |
parent | qlge: Fix receive packets drop. (diff) | |
download | linux-38c848c73180fb1d142a39e664b6d9663751f6b2.tar.xz linux-38c848c73180fb1d142a39e664b6d9663751f6b2.zip |
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/renesas/ravb_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |