atm: he: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Tue, 10 Dec 2013 03:51:46 +0000 (12:51 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Dec 2013 03:31:32 +0000 (22:31 -0500)
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 <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/he.c

index 8557adcd34ee88a82cfb9a805859cba5ad79bef2..aa6be2698669652ada3e9bbebf3ad597831b24ec 100644 (file)
@@ -419,7 +419,6 @@ static void he_remove_one(struct pci_dev *pci_dev)
        atm_dev_deregister(atm_dev);
        kfree(he_dev);
 
-       pci_set_drvdata(pci_dev, NULL);
        pci_disable_device(pci_dev);
 }