Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1185771

[PATCH 6/6] staging: rtl8188eu: remove unneeded ret

From Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 6/6] staging: rtl8188eu: remove unneeded ret
Date 2015-07-16 13:40 +0200
Message-ID <pMPG9-5ol-11@gated-at.bofh.it> (permalink)
References <pMPwt-5cU-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The variable ret was always 0. So remove the variable and always
return 0 from the function.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
---
 drivers/staging/rtl8188eu/os_dep/usb_intf.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c
index b245e9c..5490b29 100644
--- a/drivers/staging/rtl8188eu/os_dep/usb_intf.c
+++ b/drivers/staging/rtl8188eu/os_dep/usb_intf.c
@@ -230,11 +230,8 @@ static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
 	struct net_device *pnetdev = padapter->pnetdev;
 	struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
 	struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
-
-	int ret = 0;
 	u32 start_time = jiffies;
 
-
 	pr_debug("==> %s (%s:%d)\n", __func__, current->comm, current->pid);
 
 	if ((!padapter->bup) || (padapter->bDriverStopped) ||
@@ -287,10 +284,10 @@ static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
 		rtw_indicate_disconnect(padapter);
 
 exit:
-	pr_debug("<===  %s return %d.............. in %dms\n", __func__
-		, ret, rtw_get_passing_time_ms(start_time));
+	pr_debug("<===  %s .............. in %dms\n", __func__,
+		 rtw_get_passing_time_ms(start_time));
 
-	return ret;
+	return 0;
 }
 
 static int rtw_resume_process(struct adapter *padapter)
-- 
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/6] staging: rtl8188eu: remove unused function Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-07-16 13:30 +0200
  [PATCH 6/6] staging: rtl8188eu: remove unneeded ret Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-07-16 13:40 +0200
  [PATCH 5/6] staging: rtl8188eu: stop using DBG_88E Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-07-16 13:40 +0200
    Re: [PATCH 5/6] staging: rtl8188eu: stop using DBG_88E Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-07-18 06:50 +0200
  [PATCH 2/6] staging: rtl8188eu: remove redundant NULL check Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-07-16 13:40 +0200

csiph-web