public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 02/13] staging: rtl8188eu: Remove rtw_deinit_intf_priv()
@ 2014-06-06 16:15 navin patidar
  2014-06-06 16:15 ` [PATCH 03/13] staging: rtl8188eu: Remove rtw_init_intf_priv() navin patidar
                   ` (9 more replies)
  0 siblings, 10 replies; 14+ messages in thread
From: navin patidar @ 2014-06-06 16:15 UTC (permalink / raw)
  To: gregkh; +Cc: Larry.Finger, devel, linux-kernel, navin patidar

Signed-off-by: navin patidar <navin.patidar@gmail.com>
---
 drivers/staging/rtl8188eu/os_dep/usb_intf.c |   13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c
index c2e5276..f874270 100644
--- a/drivers/staging/rtl8188eu/os_dep/usb_intf.c
+++ b/drivers/staging/rtl8188eu/os_dep/usb_intf.c
@@ -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);
 	}

--
1.7.10.4


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-06-11  4:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-06 16:15 [PATCH 02/13] staging: rtl8188eu: Remove rtw_deinit_intf_priv() navin patidar
2014-06-06 16:15 ` [PATCH 03/13] staging: rtl8188eu: Remove rtw_init_intf_priv() navin patidar
2014-06-06 16:15 ` [PATCH 04/13] staging: rtl8188eu:Move rtw_hw_[suspend,resume]() to rtw_pwrctrl.c navin patidar
2014-06-06 16:15 ` [PATCH 05/13] staging: rtl8188eu: Remove unused struct intf_priv navin patidar
2014-06-06 16:15 ` [PATCH 06/13] staging: rtl8188eu: Remove unused funtion _rtw_read_mem() navin patidar
2014-06-10  7:28   ` Dan Carpenter
2014-06-11  4:13     ` navin patidar
2014-06-06 16:15 ` [PATCH 07/13] staging: rtl8188eu: Remove unused function _rtw_write_mem() navin patidar
2014-06-06 16:15 ` [PATCH 08/13] staging: rtl8188eu: Remove unused function declaration and macro navin patidar
2014-06-06 16:15 ` [PATCH 09/13] staging: rtl8188eu: rtw_io.h: Remove unused structures navin patidar
2014-06-06 16:15 ` [PATCH 10/13] staging: rtl8188eu: HalPhyRf_8188e.c: Remove unused macro navin patidar
2014-06-06 16:15 ` [PATCH 11/13] staging: rtl8188eu: HalPhyRf_8188e.c: Remove unnecessary comments navin patidar
2014-06-06 16:15 ` [PATCH] staging: rtl8188eu: os_dep: usb_intf.c: Cleaning up unnecessary code navin patidar
2014-06-06 16:47   ` navin patidar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox