From: Jingoo Han Date: Mon, 25 Nov 2013 01:49:53 +0000 (+0900) Subject: wireless: ipw2100: remove unnecessary pci_set_drvdata() X-Git-Tag: accepted/tizen/common/20141203.182822~719^2~482^2^2~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e27f360c52470981149359bf7d6ce000ad628f1;p=platform%2Fkernel%2Flinux-arm64.git wireless: ipw2100: 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/ipw2x00/ipw2100.c b/drivers/net/wireless/ipw2x00/ipw2100.c index 813c9af..3aba492 100644 --- a/drivers/net/wireless/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/ipw2x00/ipw2100.c @@ -6362,7 +6362,6 @@ out: &ipw2100_attribute_group); free_libipw(dev, 0); - pci_set_drvdata(pci_dev, NULL); } pci_iounmap(pci_dev, ioaddr);