From: Jingoo Han Date: Fri, 18 Oct 2013 00:20:24 +0000 (+0900) Subject: net: alx: remove unnecessary pci_set_drvdata() X-Git-Tag: v3.13-rc1~105^2~180^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=01095b99f3edef0bc6c39c37f847fb2e1399a02e;p=kernel%2Fkernel-generic.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/atheros/alx/main.c b/drivers/net/ethernet/atheros/alx/main.c index fc95b23..5aa5e81 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); }