Commit 8eae3005 authored by Alexander Viro's avatar Alexander Viro Committed by Stephen Hemminger

[netdrvr pcmcia] s/kfree/free_netdev/

parent cec9104e
......@@ -373,12 +373,9 @@ static void tc574_detach(dev_link_t *link)
/* Unlink device structure, free bits */
*linkp = link->next;
if (link->dev) {
if (link->dev)
unregister_netdev(dev);
free_netdev(dev);
} else
kfree(dev);
free_netdev(dev);
} /* tc574_detach */
/*
......
......@@ -287,12 +287,9 @@ static void tc589_detach(dev_link_t *link)
/* Unlink device structure, free bits */
*linkp = link->next;
if (link->dev) {
if (link->dev)
unregister_netdev(dev);
free_netdev(dev);
} else
kfree(dev);
free_netdev(dev);
} /* tc589_detach */
/*======================================================================
......
......@@ -344,12 +344,9 @@ static void fmvj18x_detach(dev_link_t *link)
/* Unlink device structure, free pieces */
*linkp = link->next;
if (link->dev) {
if (link->dev)
unregister_netdev(dev);
free_netdev(dev);
} else
kfree(dev);
free_netdev(dev);
} /* fmvj18x_detach */
/*====================================================================*/
......
......@@ -562,12 +562,9 @@ static void nmclan_detach(dev_link_t *link)
/* Unlink device structure, free bits */
*linkp = link->next;
if (link->dev) {
if (link->dev)
unregister_netdev(dev);
free_netdev(dev);
} else
kfree(dev);
free_netdev(dev);
} /* nmclan_detach */
/* ----------------------------------------------------------------------------
......
......@@ -422,12 +422,9 @@ static void smc91c92_detach(dev_link_t *link)
/* Unlink device structure, free bits */
*linkp = link->next;
if (link->dev) {
if (link->dev)
unregister_netdev(dev);
free_netdev(dev);
} else
kfree(dev);
free_netdev(dev);
} /* smc91c92_detach */
/*====================================================================*/
......
......@@ -684,12 +684,9 @@ xirc2ps_detach(dev_link_t * link)
/* Unlink device structure, free it */
*linkp = link->next;
if (link->dev) {
if (link->dev)
unregister_netdev(dev);
free_netdev(dev);
} else
kfree(dev);
free_netdev(dev);
} /* xirc2ps_detach */
/****************
......
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