Commit d1c4a48c authored by Paul Mackerras's avatar Paul Mackerras Committed by David S. Miller

[NET]: Use unregister_netdev() in ppp.

parent 029fdd13
...@@ -2343,14 +2343,9 @@ static void ppp_shutdown_interface(struct ppp *ppp) ...@@ -2343,14 +2343,9 @@ static void ppp_shutdown_interface(struct ppp *ppp)
dev = ppp->dev; dev = ppp->dev;
ppp->dev = 0; ppp->dev = 0;
ppp_unlock(ppp); ppp_unlock(ppp);
if (dev) {
rtnl_lock();
/* This will call dev_close() for us. */ /* This will call dev_close() for us. */
unregister_netdevice(dev); if (dev)
unregister_netdev(dev);
rtnl_unlock();
}
cardmap_set(&all_ppp_units, ppp->file.index, NULL); cardmap_set(&all_ppp_units, ppp->file.index, NULL);
ppp->file.dead = 1; ppp->file.dead = 1;
ppp->owner = NULL; ppp->owner = NULL;
......
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