diff options
author | Jonas Bonn <jonas@southpole.se> | 2010-11-24 21:30:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-28 14:16:37 -0500 |
commit | 4f64bcb2fc093a3a9d7d41220004491ce88e4dd3 (patch) | |
tree | 5a6f8cd7b29004ec69104d2a56d55f3f8a3648df /drivers/net/ethoc.c | |
parent | 8dac428ae9ae54d8e8540ac157d92925dd7ebed8 (diff) |
ethoc: fix function return type
update_ethoc_tx_stats doesn't need to return anything so make its return
type void in order to avoid an unnecessary cast when the function is called.
Signed-off-by: Jonas Bonn <jonas@southpole.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethoc.c')
-rw-r--r-- | drivers/net/ethoc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c index f3048faa3c66..93b50d674b1e 100644 --- a/drivers/net/ethoc.c +++ b/drivers/net/ethoc.c | |||
@@ -462,7 +462,7 @@ static int ethoc_rx(struct net_device *dev, int limit) | |||
462 | return count; | 462 | return count; |
463 | } | 463 | } |
464 | 464 | ||
465 | static int ethoc_update_tx_stats(struct ethoc *dev, struct ethoc_bd *bd) | 465 | static void ethoc_update_tx_stats(struct ethoc *dev, struct ethoc_bd *bd) |
466 | { | 466 | { |
467 | struct net_device *netdev = dev->netdev; | 467 | struct net_device *netdev = dev->netdev; |
468 | 468 | ||
@@ -492,7 +492,6 @@ static int ethoc_update_tx_stats(struct ethoc *dev, struct ethoc_bd *bd) | |||
492 | netdev->stats.collisions += (bd->stat >> 4) & 0xf; | 492 | netdev->stats.collisions += (bd->stat >> 4) & 0xf; |
493 | netdev->stats.tx_bytes += bd->stat >> 16; | 493 | netdev->stats.tx_bytes += bd->stat >> 16; |
494 | netdev->stats.tx_packets++; | 494 | netdev->stats.tx_packets++; |
495 | return 0; | ||
496 | } | 495 | } |
497 | 496 | ||
498 | static int ethoc_tx(struct net_device *dev, int limit) | 497 | static int ethoc_tx(struct net_device *dev, int limit) |
@@ -523,7 +522,7 @@ static int ethoc_tx(struct net_device *dev, int limit) | |||
523 | break; | 522 | break; |
524 | } | 523 | } |
525 | 524 | ||
526 | (void)ethoc_update_tx_stats(priv, &bd); | 525 | ethoc_update_tx_stats(priv, &bd); |
527 | priv->dty_tx++; | 526 | priv->dty_tx++; |
528 | } | 527 | } |
529 | 528 | ||