From: Jingoo Han Date: Wed, 23 Oct 2013 07:08:32 +0000 (+0900) Subject: net: tlan: remove unnecessary pci_set_drvdata() X-Git-Tag: v3.13-rc1~105^2~134^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b921f9abdd7278656aad06e624d42ddc524d5838;p=kernel%2Fkernel-generic.git net: tlan: remove unnecessary pci_set_drvdata() The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/ti/tlan.c b/drivers/net/ethernet/ti/tlan.c index 591437e..62b19be 100644 --- a/drivers/net/ethernet/ti/tlan.c +++ b/drivers/net/ethernet/ti/tlan.c @@ -319,7 +319,6 @@ static void tlan_remove_one(struct pci_dev *pdev) free_netdev(dev); - pci_set_drvdata(pdev, NULL); cancel_work_sync(&priv->tlan_tqueue); }