From: Jingoo Han Date: Tue, 10 Sep 2013 11:22:10 +0000 (+0900) Subject: wireless: adm8211: remove unnecessary pci_set_drvdata() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=11caec6952599c95e43e34b87e75a6add5be0067;p=linux-beck.git wireless: adm8211: 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/adm8211.c b/drivers/net/wireless/adm8211.c index f9a24e599dee..cfce83e1f273 100644 --- a/drivers/net/wireless/adm8211.c +++ b/drivers/net/wireless/adm8211.c @@ -1924,7 +1924,6 @@ static int adm8211_probe(struct pci_dev *pdev, pci_iounmap(pdev, priv->map); err_free_dev: - pci_set_drvdata(pdev, NULL); ieee80211_free_hw(dev); err_free_reg: