Skip to content

Commit

Permalink
rtnetlink: remove slave_validate callback
Browse files Browse the repository at this point in the history
no users in the tree.

Signed-off-by: Florian Westphal <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Florian Westphal authored and davem330 committed Oct 4, 2017
1 parent ebf6b13 commit e774d96
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions include/net/rtnetlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -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[],
Expand Down
6 changes: 0 additions & 6 deletions net/core/rtnetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e774d96

Please sign in to comment.