drivers: net: cpsw: cleanup: remove unused function
authorMugunthan V N <mugunthanvnm@ti.com>
Thu, 24 Jul 2014 11:03:29 +0000 (16:33 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Jul 2014 06:38:26 +0000 (23:38 -0700)
removing unused function as part of driver cleanup.`

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c

index 60f925df15e26feaea2ae1d3cc8de80795a363eb..999fb72688d226317d0565c936a286386ae6dd98 100644 (file)
@@ -1003,17 +1003,6 @@ static void cpsw_get_ethtool_stats(struct net_device *ndev,
        }
 }
 
-static inline int __show_stat(char *buf, int maxlen, const char *name, u32 val)
-{
-       static char *leader = "........................................";
-
-       if (!val)
-               return 0;
-       else
-               return snprintf(buf, maxlen, "%s %s %10d\n", name,
-                               leader + strlen(name), val);
-}
-
 static int cpsw_common_res_usage_state(struct cpsw_priv *priv)
 {
        u32 i;