mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 08:36:48 +07:00
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>
This commit is contained in:
parent
68351b5803
commit
717a23a142
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user