net: tlan: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Wed, 23 Oct 2013 07:08:32 +0000 (16:08 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Oct 2013 20:58:41 +0000 (16:58 -0400)
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/net/ethernet/ti/tlan.c

index 591437e59b9019c9fa0597a8342f63ae5357fcaa..62b19be5183d3349433ee5855ad082b1560b5c69 100644 (file)
@@ -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);
 }