]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging: fsl-dpaa2/eth: Remove pointless instruction
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Mon, 9 Jul 2018 15:01:09 +0000 (10:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Jul 2018 10:32:35 +0000 (12:32 +0200)
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>
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c

index 6331e8debd335d555652d66dfa00a6c7602ea124..439b260a58bf59acd5e8d1b3e26f484f26163fe4 100644 (file)
@@ -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);