diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-10-22 13:18:57 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-22 02:11:52 -0400 |
commit | 7c015aea4fa6611c97994812c022cf6ebff9f0c7 (patch) | |
tree | a1f92447386d93d76447e75396adfa3721198a37 /drivers/net/ethernet/sis | |
parent | 0f423ffe9422667bb03ae853a11000038efb2362 (diff) | |
download | linux-7c015aea4fa6611c97994812c022cf6ebff9f0c7.tar.bz2 |
net: sis190: 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 <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sis')
-rw-r--r-- | drivers/net/ethernet/sis/sis190.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sis/sis190.c b/drivers/net/ethernet/sis/sis190.c index ee18e6f7b4fe..acbbe48a519c 100644 --- a/drivers/net/ethernet/sis/sis190.c +++ b/drivers/net/ethernet/sis/sis190.c @@ -1921,7 +1921,6 @@ static void sis190_remove_one(struct pci_dev *pdev) cancel_work_sync(&tp->phy_task); unregister_netdev(dev); sis190_release_board(pdev); - pci_set_drvdata(pdev, NULL); } static struct pci_driver sis190_pci_driver = { |