X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=net%2Fcore%2Fnet-sysfs.c;h=830f8a7c1cb173caf3df0c9044bb81f9363338d8;hb=cfed1e3de4764fb5b6a02c93ec246424b3bffd21;hp=805a95a481076dcc229c881322c2e6ef308692bd;hpb=7c4f1c694bf84eac538bee3e411aed10ae617d46;p=karo-tx-linux.git diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 805a95a48107..830f8a7c1cb1 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -31,7 +31,6 @@ static const char fmt_hex[] = "%#x\n"; static const char fmt_long_hex[] = "%#lx\n"; static const char fmt_dec[] = "%d\n"; -static const char fmt_udec[] = "%u\n"; static const char fmt_ulong[] = "%lu\n"; static const char fmt_u64[] = "%llu\n"; @@ -202,7 +201,7 @@ static ssize_t speed_show(struct device *dev, if (netif_running(netdev)) { struct ethtool_cmd cmd; if (!__ethtool_get_settings(netdev, &cmd)) - ret = sprintf(buf, fmt_udec, ethtool_cmd_speed(&cmd)); + ret = sprintf(buf, fmt_dec, ethtool_cmd_speed(&cmd)); } rtnl_unlock(); return ret;