diff options
author | Jonas Bonn <jonas@southpole.se> | 2010-11-25 03:30:31 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-28 20:16:37 +0100 |
commit | 4f64bcb2fc093a3a9d7d41220004491ce88e4dd3 (patch) | |
tree | 5a6f8cd7b29004ec69104d2a56d55f3f8a3648df | |
parent | ethoc: rework mdio read/write (diff) | |
download | linux-4f64bcb2fc093a3a9d7d41220004491ce88e4dd3.tar.xz linux-4f64bcb2fc093a3a9d7d41220004491ce88e4dd3.zip |
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>
-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) 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; @@ -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) @@ -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++; } |