staging: vt6655: Remove redundant pci_set_drvdata
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 20 Sep 2013 10:11:38 +0000 (15:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Sep 2013 23:45:18 +0000 (16:45 -0700)
Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c

index 7f36a7103c3ef3812c20963d9f6ab6a51757069b..e93fdc88d84456ed52a8cb6cdaf9c02289c695c2 100644 (file)
@@ -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) {