From: Jingoo Han Date: Tue, 10 Sep 2013 11:30:49 +0000 (+0900) Subject: wireless: p54pci: remove unnecessary pci_set_drvdata() X-Git-Tag: v3.13-rc1~105^2~225^2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=717a23a1425a5a84b4e90bcdf28f070506b4ad62;p=profile%2Fcommon%2Fkernel-common.git wireless: p54pci: 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: John W. Linville --- diff --git a/drivers/net/wireless/p54/p54pci.c b/drivers/net/wireless/p54/p54pci.c index 57e3af8..f9a07b0 100644 --- a/drivers/net/wireless/p54/p54pci.c +++ b/drivers/net/wireless/p54/p54pci.c @@ -631,7 +631,6 @@ static int p54p_probe(struct pci_dev *pdev, iounmap(priv->map); err_free_dev: - pci_set_drvdata(pdev, NULL); p54_free_common(dev); err_free_reg: