]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ethoc: fix function return type
authorJonas Bonn <jonas@southpole.se>
Thu, 25 Nov 2010 02:30:31 +0000 (02:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Nov 2010 19:16:37 +0000 (11:16 -0800)
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>
drivers/net/ethoc.c

index f3048faa3c66bb35fd08ffc5e0d23885fde34ec8..93b50d674b1edd51645add0ec022aba8068823f1 100644 (file)
@@ -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++;
        }