mirror of https://gitee.com/openkylin/linux.git
staging: fsl-dpaa2/eth: Remove pointless instruction
We don't need to call dev_set_drvdata(dev, NULL) on driver remove since core kernel code also performs this step. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e0cfb8f2d5
commit
0c04722757
|
@ -2676,7 +2676,6 @@ static int dpaa2_eth_remove(struct fsl_mc_device *ls_dev)
|
|||
|
||||
fsl_mc_portal_free(priv->mc_io);
|
||||
|
||||
dev_set_drvdata(dev, NULL);
|
||||
free_netdev(net_dev);
|
||||
|
||||
dev_dbg(net_dev->dev.parent, "Removed interface %s\n", net_dev->name);
|
||||
|
|
Loading…
Reference in New Issue