Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Guillaume Nault and committed by
David S. Miller
614b7a1f 6180c780

-38
-34
drivers/net/bareudp.c
··· 721 721 .fill_info = bareudp_fill_info, 722 722 }; 723 723 724 - struct net_device *bareudp_dev_create(struct net *net, const char *name, 725 - u8 name_assign_type, 726 - struct bareudp_conf *conf) 727 - { 728 - struct nlattr *tb[IFLA_MAX + 1]; 729 - struct net_device *dev; 730 - int err; 731 - 732 - memset(tb, 0, sizeof(tb)); 733 - dev = rtnl_create_link(net, name, name_assign_type, 734 - &bareudp_link_ops, tb, NULL); 735 - if (IS_ERR(dev)) 736 - return dev; 737 - 738 - err = bareudp_configure(net, dev, conf); 739 - if (err) { 740 - free_netdev(dev); 741 - return ERR_PTR(err); 742 - } 743 - err = dev_set_mtu(dev, IP_MAX_MTU - BAREUDP_BASE_HLEN); 744 - if (err) 745 - goto err; 746 - 747 - err = rtnl_configure_link(dev, NULL); 748 - if (err < 0) 749 - goto err; 750 - 751 - return dev; 752 - err: 753 - bareudp_dellink(dev, NULL); 754 - return ERR_PTR(err); 755 - } 756 - EXPORT_SYMBOL_GPL(bareudp_dev_create); 757 - 758 724 static __net_init int bareudp_init_net(struct net *net) 759 725 { 760 726 struct bareudp_net *bn = net_generic(net, bareudp_net_id);
-4
include/net/bareudp.h
··· 14 14 bool multi_proto_mode; 15 15 }; 16 16 17 - struct net_device *bareudp_dev_create(struct net *net, const char *name, 18 - u8 name_assign_type, 19 - struct bareudp_conf *info); 20 - 21 17 static inline bool netif_is_bareudp(const struct net_device *dev) 22 18 { 23 19 return dev->rtnl_link_ops &&