diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-10-18 09:20:24 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-18 00:03:29 -0400 |
commit | 01095b99f3edef0bc6c39c37f847fb2e1399a02e (patch) | |
tree | 6fb5a016750ad9b52c3c9b933700376aa1ea2973 /drivers/net/ethernet/atheros/alx | |
parent | 94ee39fe773d55a305b0a069ce7a93b64375a89a (diff) | |
download | blackbird-op-linux-01095b99f3edef0bc6c39c37f847fb2e1399a02e.tar.gz blackbird-op-linux-01095b99f3edef0bc6c39c37f847fb2e1399a02e.zip |
net: alx: 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/atheros/alx')
-rw-r--r-- | drivers/net/ethernet/atheros/alx/main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/atheros/alx/main.c b/drivers/net/ethernet/atheros/alx/main.c index fc95b235e210..5aa5e8146496 100644 --- a/drivers/net/ethernet/atheros/alx/main.c +++ b/drivers/net/ethernet/atheros/alx/main.c @@ -1367,7 +1367,6 @@ static void alx_remove(struct pci_dev *pdev) pci_disable_pcie_error_reporting(pdev); pci_disable_device(pdev); - pci_set_drvdata(pdev, NULL); free_netdev(alx->dev); } |