Browse Source

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>
stephen hemminger 9 years ago
parent
commit
b8b867e132
1 changed files with 0 additions and 4 deletions
  1. 0 4
      net/core/rtnetlink.c

+ 0 - 4
net/core/rtnetlink.c

@@ -3669,10 +3669,6 @@ nla_put_failure:
 	return -EMSGSIZE;
 	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,
 static size_t if_nlmsg_stats_size(const struct net_device *dev,
 				  u32 filter_mask)
 				  u32 filter_mask)
 {
 {