|
@@ -377,10 +377,9 @@ static void sja1000_rx(struct net_device *dev)
|
|
|
/* release receive buffer */
|
|
|
sja1000_write_cmdreg(priv, CMD_RRB);
|
|
|
|
|
|
- netif_rx(skb);
|
|
|
-
|
|
|
stats->rx_packets++;
|
|
|
stats->rx_bytes += cf->can_dlc;
|
|
|
+ netif_rx(skb);
|
|
|
|
|
|
can_led_event(dev, CAN_LED_EVENT_RX);
|
|
|
}
|
|
@@ -484,10 +483,9 @@ static int sja1000_err(struct net_device *dev, uint8_t isrc, uint8_t status)
|
|
|
can_bus_off(dev);
|
|
|
}
|
|
|
|
|
|
- netif_rx(skb);
|
|
|
-
|
|
|
stats->rx_packets++;
|
|
|
stats->rx_bytes += cf->can_dlc;
|
|
|
+ netif_rx(skb);
|
|
|
|
|
|
return 0;
|
|
|
}
|