Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215209
b: refs/heads/master
c: 711e4d6
h: refs/heads/master
i:
  215207: 41c85aa
v: v3
  • Loading branch information
Sascha Hauer authored and Marc Kleine-Budde committed Oct 18, 2010
1 parent 9631e8a commit bd410a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 57d3c7b09bd797b8db974557a71df8675a22601b
refs/heads/master: 711e4d6eccd72c57938228b8e0c29cb205527032
8 changes: 6 additions & 2 deletions trunk/drivers/net/can/mcp251x.c
Original file line number Diff line number Diff line change
Expand Up @@ -816,10 +816,14 @@ static irqreturn_t mcp251x_can_ist(int irq, void *dev_id)
if (intf & CANINTF_ERRIF) {
/* Handle overflow counters */
if (eflag & (EFLG_RX0OVR | EFLG_RX1OVR)) {
if (eflag & EFLG_RX0OVR)
if (eflag & EFLG_RX0OVR) {
net->stats.rx_over_errors++;
if (eflag & EFLG_RX1OVR)
net->stats.rx_errors++;
}
if (eflag & EFLG_RX1OVR) {
net->stats.rx_over_errors++;
net->stats.rx_errors++;
}
can_id |= CAN_ERR_CRTL;
data1 |= CAN_ERR_CRTL_RX_OVERFLOW;
}
Expand Down

0 comments on commit bd410a4

Please sign in to comment.