netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] rtnetlink: remove unused ifla_stats_policy
@ 2016-09-07 20:57 Stephen Hemminger
  2016-09-09  0:23 ` David Miller
  2016-09-09 23:53 ` David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Stephen Hemminger @ 2016-09-07 20:57 UTC (permalink / raw)
  To: David Miller; +Cc: netdev

This structure is defined but never used. Flagged with W=1

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>

--- a/net/core/rtnetlink.c	2016-09-07 13:55:17.030107744 -0700
+++ b/net/core/rtnetlink.c	2016-09-07 13:55:45.190236855 -0700
@@ -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)
 {

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-09-09 23:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-07 20:57 [PATCH net-next] rtnetlink: remove unused ifla_stats_policy Stephen Hemminger
2016-09-09  0:23 ` David Miller
2016-09-09  2:56   ` Roopa Prabhu
2016-09-09 23:53 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).