staging: rtl8188eu: Remove enum driver_state
authornavin patidar <navin.patidar@gmail.com>
Sun, 1 Jun 2014 12:16:43 +0000 (17:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:30:03 +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/include/drv_types.h
drivers/staging/rtl8188eu/os_dep/usb_intf.c

index 9195cf336e6446cc882eb50e3a40d3685baac6ee..5fa2e172abb8452ce4fd3bb5caa69c4e9b703d98 100644 (file)
@@ -187,12 +187,6 @@ static inline struct device *dvobj_to_dev(struct dvobj_priv *dvobj)
        return &dvobj->pusbintf->dev;
 };
 
-enum driver_state {
-       DRIVER_NORMAL = 0,
-       DRIVER_DISAPPEAR = 1,
-       DRIVER_REPLACE_DONGLE = 2,
-};
-
 struct adapter {
        int     DriverState;/* for disable driver using module, use dongle toi
                             * replace module. */
index 1265a47da26625384c8506b75e8d82184da1d70c..4ac67e225152c79b95325d4b5706b03b3ec4b039 100644 (file)
@@ -606,12 +606,10 @@ static void rtw_usb_if1_deinit(struct adapter *if1)
        free_mlme_ap_info(if1);
 #endif
 
-       if (if1->DriverState != DRIVER_DISAPPEAR) {
-               if (pnetdev) {
-                       /* will call netdev_close() */
-                       unregister_netdev(pnetdev);
-                       rtw_proc_remove_one(pnetdev);
-               }
+       if (pnetdev) {
+               /* will call netdev_close() */
+               unregister_netdev(pnetdev);
+               rtw_proc_remove_one(pnetdev);
        }
        rtw_cancel_all_timer(if1);