diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 13:30:49 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-09-26 21:13:45 +0200 |
commit | 717a23a1425a5a84b4e90bcdf28f070506b4ad62 (patch) | |
tree | 19d11fe1a59fa087a4dd2a13e4b8a5a83be5d7e4 /drivers | |
parent | wireless: orinoco: remove unnecessary pci_set_drvdata() (diff) | |
download | linux-717a23a1425a5a84b4e90bcdf28f070506b4ad62.tar.xz linux-717a23a1425a5a84b4e90bcdf28f070506b4ad62.zip |
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 <jg1.han@samsung.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/p54/p54pci.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/p54/p54pci.c b/drivers/net/wireless/p54/p54pci.c index 57e3af8ebb4b..f9a07b0d83ac 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: |