staging: rtl8192e: Remove redundant pci_set_drvdata
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 20 Sep 2013 10:11:36 +0000 (15:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Sep 2013 23:45:19 +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/rtl8192e/rtl8192e/rtl_core.c

index e0684435555197a395cebe98e29e5fda9f104bef..7d322f3980e157ef83abf9f6b48663e3d9f2af46 100644 (file)
@@ -2982,7 +2982,6 @@ err_rel_rtllib:
        free_rtllib(dev);
 
        DMESG("wlan driver load failed\n");
-       pci_set_drvdata(pdev, NULL);
 err_pci_disable:
        pci_disable_device(pdev);
        return err;