rtnetlink: remove slave_validate callback
authorFlorian Westphal <fw@strlen.de>
Wed, 4 Oct 2017 13:55:29 +0000 (15:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Oct 2017 17:33:59 +0000 (10:33 -0700)
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>
include/net/rtnetlink.h
net/core/rtnetlink.c

index 21837ca68ecc11f1f6d82a9d08878c335c93975b..6520993ff449efb657dcfed6431782f7c93d4a80 100644 (file)
@@ -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[],
index 3961f87cdc7606288866dea377bae44da92fecc9..b63c5759641f2f4b9ca0f768f4bcc63f5cb1ecb5 100644 (file)
@@ -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) {