diff options
author | Florian Westphal <fw@strlen.de> | 2017-10-04 15:55:29 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-04 10:33:59 -0700 |
commit | e774d96b7d2c3489bfb5bbdc2b65ed41cd68d3d5 (patch) | |
tree | 1413590f0cd5bfda544e18d21f7fc2d8b0b33203 | |
parent | ebf6b13142f947be576b40edce214788dfe1d3e3 (diff) | |
download | linux-e774d96b7d2c3489bfb5bbdc2b65ed41cd68d3d5.tar.bz2 |
rtnetlink: remove slave_validate callback
no users in the tree.
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/rtnetlink.h | 3 | ||||
-rw-r--r-- | net/core/rtnetlink.c | 6 |
2 files changed, 0 insertions, 9 deletions
diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h index 21837ca68ecc..6520993ff449 100644 --- a/include/net/rtnetlink.h +++ b/include/net/rtnetlink.h @@ -93,9 +93,6 @@ struct rtnl_link_ops { int slave_maxtype; const struct nla_policy *slave_policy; - int (*slave_validate)(struct nlattr *tb[], - struct nlattr *data[], - struct netlink_ext_ack *extack); int (*slave_changelink)(struct net_device *dev, struct net_device *slave_dev, struct nlattr *tb[], diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 3961f87cdc76..b63c5759641f 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -2631,12 +2631,6 @@ replay: return err; slave_data = slave_attr; } - if (m_ops->slave_validate) { - err = m_ops->slave_validate(tb, slave_data, - extack); - if (err < 0) - return err; - } } if (dev) { |