diff options
Diffstat (limited to 'drivers/net/can/at91_can.c')
-rw-r--r-- | drivers/net/can/at91_can.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c index 8b3275d7792a..8f5e93cb7975 100644 --- a/drivers/net/can/at91_can.c +++ b/drivers/net/can/at91_can.c | |||
@@ -712,9 +712,10 @@ static int at91_poll_rx(struct net_device *dev, int quota) | |||
712 | 712 | ||
713 | /* upper group completed, look again in lower */ | 713 | /* upper group completed, look again in lower */ |
714 | if (priv->rx_next > get_mb_rx_low_last(priv) && | 714 | if (priv->rx_next > get_mb_rx_low_last(priv) && |
715 | quota > 0 && mb > get_mb_rx_last(priv)) { | 715 | mb > get_mb_rx_last(priv)) { |
716 | priv->rx_next = get_mb_rx_first(priv); | 716 | priv->rx_next = get_mb_rx_first(priv); |
717 | goto again; | 717 | if (quota > 0) |
718 | goto again; | ||
718 | } | 719 | } |
719 | 720 | ||
720 | return received; | 721 | return received; |