staging: rtl8188eu: Remove rtw_deinit_intf_priv()
authornavin patidar <navin.patidar@gmail.com>
Fri, 6 Jun 2014 16:15:10 +0000 (21:45 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:32:10 +0000 (15:32 -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 c2e5276853bf4cba9a13fd8fb8f0d5f97973d81a..f874270e0b10f7ec91f409bbeeb6349a3d1da94a 100644 (file)
@@ -62,15 +62,6 @@ static u8 rtw_init_intf_priv(struct dvobj_priv *dvobj)
        return _SUCCESS;
 }
 
-static u8 rtw_deinit_intf_priv(struct dvobj_priv *dvobj)
-{
-       u8 rst = _SUCCESS;
-
-       kfree(dvobj->usb_vendor_req_buf);
-       mutex_destroy(&dvobj->usb_vendor_req_mutex);
-       return rst;
-}
-
 static struct dvobj_priv *usb_dvobj_init(struct usb_interface *usb_intf)
 {
        int     i;
@@ -175,7 +166,9 @@ static void usb_dvobj_deinit(struct usb_interface *usb_intf)
                                usb_reset_device(interface_to_usbdev(usb_intf));
                        }
                }
-               rtw_deinit_intf_priv(dvobj);
+
+               kfree(dvobj->usb_vendor_req_buf);
+               mutex_destroy(&dvobj->usb_vendor_req_mutex);
                kfree(dvobj);
        }