diff options
author | Guillaume Nault <gnault@redhat.com> | 2021-12-10 20:56:36 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-13 12:34:09 +0000 |
commit | 614b7a1f28f401332736235a7d2d17ceda16945c (patch) | |
tree | 0994a9308bf99552b720467042d35fdeab5b9e20 /drivers/net/bareudp.c | |
parent | 6180c780e64ceb8dd23345b586dfa70c0a1536ee (diff) | |
download | lwn-614b7a1f28f401332736235a7d2d17ceda16945c.tar.gz lwn-614b7a1f28f401332736235a7d2d17ceda16945c.zip |
bareudp: Remove bareudp_dev_create()
There's no user for this function.
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bareudp.c')
-rw-r--r-- | drivers/net/bareudp.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/drivers/net/bareudp.c b/drivers/net/bareudp.c index edffc3489a12..fb71a0753385 100644 --- a/drivers/net/bareudp.c +++ b/drivers/net/bareudp.c @@ -721,40 +721,6 @@ static struct rtnl_link_ops bareudp_link_ops __read_mostly = { .fill_info = bareudp_fill_info, }; -struct net_device *bareudp_dev_create(struct net *net, const char *name, - u8 name_assign_type, - struct bareudp_conf *conf) -{ - struct nlattr *tb[IFLA_MAX + 1]; - struct net_device *dev; - int err; - - memset(tb, 0, sizeof(tb)); - dev = rtnl_create_link(net, name, name_assign_type, - &bareudp_link_ops, tb, NULL); - if (IS_ERR(dev)) - return dev; - - err = bareudp_configure(net, dev, conf); - if (err) { - free_netdev(dev); - return ERR_PTR(err); - } - err = dev_set_mtu(dev, IP_MAX_MTU - BAREUDP_BASE_HLEN); - if (err) - goto err; - - err = rtnl_configure_link(dev, NULL); - if (err < 0) - goto err; - - return dev; -err: - bareudp_dellink(dev, NULL); - return ERR_PTR(err); -} -EXPORT_SYMBOL_GPL(bareudp_dev_create); - static __net_init int bareudp_init_net(struct net *net) { struct bareudp_net *bn = net_generic(net, bareudp_net_id); |