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 8557adc..aa6be26 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);
 }