From: Mugunthan V N Date: Thu, 24 Jul 2014 11:03:29 +0000 (+0530) Subject: drivers: net: cpsw: cleanup: remove unused function X-Git-Tag: v3.17-rc1~106^2~80 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ef492001214ba250b3bd18a7a346a047fe079449;p=karo-tx-linux.git drivers: net: cpsw: cleanup: remove unused function removing unused function as part of driver cleanup.` Signed-off-by: Mugunthan V N Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 60f925df15e2..999fb72688d2 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -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;