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