Commit 15fea123 authored by David S. Miller's avatar David S. Miller

register_netdevice: Fix return value handling on success.

parent e3fe9444
...@@ -2486,6 +2486,8 @@ int register_netdevice(struct net_device *dev) ...@@ -2486,6 +2486,8 @@ int register_netdevice(struct net_device *dev)
notifier_call_chain(&netdev_chain, NETDEV_REGISTER, dev); notifier_call_chain(&netdev_chain, NETDEV_REGISTER, dev);
net_run_sbin_hotplug(dev, "register"); net_run_sbin_hotplug(dev, "register");
ret = 0;
out: out:
return ret; return ret;
out_err: out_err:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment