* [PATCH net-next] rtnetlink: remove slave_validate callback
@ 2017-10-04 13:55 Florian Westphal
2017-10-04 13:56 ` Jiri Pirko
2017-10-04 17:34 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Florian Westphal @ 2017-10-04 13:55 UTC (permalink / raw)
To: netdev; +Cc: jiri, Florian Westphal
no users in the tree.
Signed-off-by: Florian Westphal <fw@strlen.de>
---
include/net/rtnetlink.h | 3 ---
net/core/rtnetlink.c | 6 ------
2 files changed, 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 @@ static int rtnl_newlink(struct sk_buff *skb, struct nlmsghdr *nlh,
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) {
--
2.13.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-10-04 17:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-04 13:55 [PATCH net-next] rtnetlink: remove slave_validate callback Florian Westphal
2017-10-04 13:56 ` Jiri Pirko
2017-10-04 17:34 ` 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).