summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/atheros/alx/main.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-10-18 04:20:24 +0400
committerDavid S. Miller <davem@davemloft.net>2013-10-18 08:03:29 +0400
commit01095b99f3edef0bc6c39c37f847fb2e1399a02e (patch)
tree6fb5a016750ad9b52c3c9b933700376aa1ea2973 /drivers/net/ethernet/atheros/alx/main.c
parent94ee39fe773d55a305b0a069ce7a93b64375a89a (diff)
downloadlinux-01095b99f3edef0bc6c39c37f847fb2e1399a02e.tar.xz
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/main.c')
-rw-r--r--drivers/net/ethernet/atheros/alx/main.c1
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);
}