staging : rtl8188eu: Remove drv_registered from struct rtw_usb_drv
authornavin patidar <navin.patidar@gmail.com>
Sun, 1 Jun 2014 12:16:32 +0000 (17:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:30:02 +0000 (15:30 -0700)
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/usb_intf.c

index 1841d543d3371bb0e6398fb0df84dfd18a16fbdc..c99b9c2db132b7271a41935d368c32f926dff819 100644 (file)
@@ -62,7 +62,6 @@ MODULE_DEVICE_TABLE(usb, rtw_usb_id_tbl);
 
 struct rtw_usb_drv {
        struct usb_driver usbdrv;
-       int drv_registered;
 };
 
 static struct rtw_usb_drv rtl8188e_usb_drv = {
@@ -731,7 +730,6 @@ static int __init rtw_drv_entry(void)
 
        DBG_88E(DRV_NAME " driver version=%s\n", DRIVERVERSION);
 
-       usb_drv->drv_registered = true;
        return usb_register(&usb_drv->usbdrv);
 }
 
@@ -740,7 +738,6 @@ static void __exit rtw_drv_halt(void)
        RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("+rtw_drv_halt\n"));
        DBG_88E("+rtw_drv_halt\n");
 
-       usb_drv->drv_registered = false;
        usb_deregister(&usb_drv->usbdrv);
 
        DBG_88E("-rtw_drv_halt\n");