net: socket: remove register_gifconf
Since dynamic registration of the gifconf() helper is only used for IPv4, and this can not be in a loadable module, this can be simplified noticeably by turning it into a direct function call as a preparation for cleaning up the compat handling. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
709566d792
commit
b0e99d0377
@@ -1243,7 +1243,7 @@ out:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int inet_gifconf(struct net_device *dev, char __user *buf, int len, int size)
|
||||
int inet_gifconf(struct net_device *dev, char __user *buf, int len, int size)
|
||||
{
|
||||
struct in_device *in_dev = __in_dev_get_rtnl(dev);
|
||||
const struct in_ifaddr *ifa;
|
||||
@@ -2766,8 +2766,6 @@ void __init devinet_init(void)
|
||||
INIT_HLIST_HEAD(&inet_addr_lst[i]);
|
||||
|
||||
register_pernet_subsys(&devinet_ops);
|
||||
|
||||
register_gifconf(PF_INET, inet_gifconf);
|
||||
register_netdevice_notifier(&ip_netdev_notifier);
|
||||
|
||||
queue_delayed_work(system_power_efficient_wq, &check_lifetime_work, 0);
|
||||
|
||||
Reference in New Issue
Block a user