mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
CONFIG_HOTPLUG removal from networking core
CONFIG_HOTPLUG is always enabled now, so remove the unused code that was trying to be compiled out when this option was disabled, in the networking core. Cc: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
03ce758e56
commit
8baf82b368
3 changed files with 0 additions and 15 deletions
|
@ -1334,7 +1334,6 @@ struct kobj_ns_type_operations net_ns_type_operations = {
|
|||
};
|
||||
EXPORT_SYMBOL_GPL(net_ns_type_operations);
|
||||
|
||||
#ifdef CONFIG_HOTPLUG
|
||||
static int netdev_uevent(struct device *d, struct kobj_uevent_env *env)
|
||||
{
|
||||
struct net_device *dev = to_net_dev(d);
|
||||
|
@ -1353,7 +1352,6 @@ static int netdev_uevent(struct device *d, struct kobj_uevent_env *env)
|
|||
exit:
|
||||
return retval;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* netdev_release -- destroy and free a dead device.
|
||||
|
@ -1382,9 +1380,7 @@ static struct class net_class = {
|
|||
#ifdef CONFIG_SYSFS
|
||||
.dev_attrs = net_class_attributes,
|
||||
#endif /* CONFIG_SYSFS */
|
||||
#ifdef CONFIG_HOTPLUG
|
||||
.dev_uevent = netdev_uevent,
|
||||
#endif
|
||||
.ns_type = &net_ns_type_operations,
|
||||
.namespace = net_namespace,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue