net: dsa: ocelot: remove unnecessary set_drvdata()
Remove unnecessary set_drvdata(NULL) function in ->remove(), the driver_data will be set to NULL in device_unbind_cleanup() after calling ->remove(). Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
b25a575c9c
commit
f66d1ecc1a
|
@ -2727,8 +2727,6 @@ static void felix_pci_remove(struct pci_dev *pdev)
|
|||
kfree(felix);
|
||||
|
||||
pci_disable_device(pdev);
|
||||
|
||||
pci_set_drvdata(pdev, NULL);
|
||||
}
|
||||
|
||||
static void felix_pci_shutdown(struct pci_dev *pdev)
|
||||
|
|
|
@ -1153,8 +1153,6 @@ static int seville_remove(struct platform_device *pdev)
|
|||
kfree(felix->ds);
|
||||
kfree(felix);
|
||||
|
||||
platform_set_drvdata(pdev, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue