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)
dev = ppp->dev;
ppp->dev = 0;
ppp_unlock(ppp);
if (dev) {
rtnl_lock();
/* This will call dev_close() for us. */
unregister_netdevice(dev);
rtnl_unlock();
}
if (dev)
unregister_netdev(dev);
cardmap_set(&all_ppp_units, ppp->file.index, NULL);
ppp->file.dead = 1;
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