staging: rtl8187se: Remove redundant pci_set_drvdata
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 20 Sep 2013 10:11:35 +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/rtl8187se/r8180_core.c

index 35412d2922e22772516a1d7d88ecfdfb9c0c808e..48ce9a66907c85aded14501d5d2bc357e87b1dc5 100644 (file)
@@ -3268,7 +3268,6 @@ fail_free:
        pci_disable_device(pdev);
 
        DMESG("wlan driver load failed\n");
-       pci_set_drvdata(pdev, NULL);
        return ret;
 }