[PATCH 4/5] staging: vt6655: Remove redundant pci_set_drvdata
Sachin Kamat
sachin.kamat at linaro.org
Fri Sep 20 10:11:38 UTC 2013
Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>
---
drivers/staging/vt6655/device_main.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
index 7f36a71..e93fdc8 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -1153,10 +1153,6 @@ static void device_free_info(PSDevice pDevice) {
pci_release_regions(pDevice->pcid);
if (dev)
free_netdev(dev);
-
- if (pDevice->pcid) {
- pci_set_drvdata(pDevice->pcid, NULL);
- }
}
static bool device_init_rings(PSDevice pDevice) {
--
1.7.9.5
More information about the devel
mailing list