Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224521
b: refs/heads/master
c: 4f64bcb
h: refs/heads/master
i:
  224519: 5a79edb
v: v3
  • Loading branch information
Jonas Bonn authored and David S. Miller committed Nov 28, 2010
1 parent 40cdde2 commit 981d5e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 8dac428ae9ae54d8e8540ac157d92925dd7ebed8
refs/heads/master: 4f64bcb2fc093a3a9d7d41220004491ce88e4dd3
5 changes: 2 additions & 3 deletions trunk/drivers/net/ethoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ static int ethoc_rx(struct net_device *dev, int limit)
return count;
}

static int ethoc_update_tx_stats(struct ethoc *dev, struct ethoc_bd *bd)
static void ethoc_update_tx_stats(struct ethoc *dev, struct ethoc_bd *bd)
{
struct net_device *netdev = dev->netdev;

Expand Down Expand Up @@ -492,7 +492,6 @@ static int ethoc_update_tx_stats(struct ethoc *dev, struct ethoc_bd *bd)
netdev->stats.collisions += (bd->stat >> 4) & 0xf;
netdev->stats.tx_bytes += bd->stat >> 16;
netdev->stats.tx_packets++;
return 0;
}

static int ethoc_tx(struct net_device *dev, int limit)
Expand Down Expand Up @@ -523,7 +522,7 @@ static int ethoc_tx(struct net_device *dev, int limit)
break;
}

(void)ethoc_update_tx_stats(priv, &bd);
ethoc_update_tx_stats(priv, &bd);
priv->dty_tx++;
}

Expand Down

0 comments on commit 981d5e7

Please sign in to comment.