Skip to content

Commit

Permalink
ravb: fix result value overwrite
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yoshihiro Kaneko authored and David S. Miller committed Mar 18, 2016
1 parent 2c9a266 commit 38c848c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/renesas/ravb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 38c848c

Please sign in to comment.