summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2016-09-07 22:57:36 +0200
committerDavid S. Miller <davem@davemloft.net>2016-09-10 01:52:43 +0200
commitb8b867e132d2c32f16a49b3ce5c11ee289a92c4e (patch)
tree85ebd6981d6ba13acbf6450cc9f8f09ae4229c25 /net/core
parentMerge branch 'newroute-creation-flags' (diff)
downloadlinux-b8b867e132d2c32f16a49b3ce5c11ee289a92c4e.tar.xz
linux-b8b867e132d2c32f16a49b3ce5c11ee289a92c4e.zip
rtnetlink: remove unused ifla_stats_policy
This structure is defined but never used. Flagged with W=1 Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/rtnetlink.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 1dfca1c3f8f5..937e459bdaa9 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -3669,10 +3669,6 @@ nla_put_failure:
return -EMSGSIZE;
}
-static const struct nla_policy ifla_stats_policy[IFLA_STATS_MAX + 1] = {
- [IFLA_STATS_LINK_64] = { .len = sizeof(struct rtnl_link_stats64) },
-};
-
static size_t if_nlmsg_stats_size(const struct net_device *dev,
u32 filter_mask)
{