summaryrefslogtreecommitdiff
path: root/net/ethtool
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-04-16 01:53:13 +0300
committerDavid S. Miller <davem@davemloft.net>2021-04-16 03:08:29 +0300
commitc5797f8a64158f724238d13fa5a4b351b03fe42d (patch)
tree6c7ff7fefedee180046d87610b919e7a85bbaa8e /net/ethtool
parent38ebcf5096a86762b82262e96b2c8b170fe79040 (diff)
downloadlinux-c5797f8a64158f724238d13fa5a4b351b03fe42d.tar.xz
ethtool: move ethtool_stats_init
We'll need it for FEC stats as well. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ethtool')
-rw-r--r--net/ethtool/pause.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/net/ethtool/pause.c b/net/ethtool/pause.c
index 09998dc5c185..f1967c121278 100644
--- a/net/ethtool/pause.c
+++ b/net/ethtool/pause.c
@@ -21,12 +21,6 @@ const struct nla_policy ethnl_pause_get_policy[] = {
NLA_POLICY_NESTED(ethnl_header_policy_stats),
};
-static void ethtool_stats_init(u64 *stats, unsigned int n)
-{
- while (n--)
- stats[n] = ETHTOOL_STAT_NOT_SET;
-}
-
static int pause_prepare_data(const struct ethnl_req_info *req_base,
struct ethnl_reply_data *reply_base,
struct genl_info *info)