[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220831144529.304636-1-cui.jinpeng2@zte.com.cn>
Date: Wed, 31 Aug 2022 14:45:29 +0000
From: cgel.zte@...il.com
To: Larry.Finger@...inger.net, phil@...lpotter.co.uk,
paskripkin@...il.com
Cc: martin@...ser.cx, straube.linux@...il.com, abdun.nihaal@...il.com,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org,
Jinpeng Cui <cui.jinpeng2@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH linux-next] staging: r8188eu: remove redundant variable ret
From: Jinpeng Cui <cui.jinpeng2@....com.cn>
Return value directly from rtw_set_wpa_ie() instead of
getting value from redundant variable ret.
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: Jinpeng Cui <cui.jinpeng2@....com.cn>
---
drivers/staging/r8188eu/os_dep/ioctl_linux.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/staging/r8188eu/os_dep/ioctl_linux.c b/drivers/staging/r8188eu/os_dep/ioctl_linux.c
index d6b6021a4250..31a439663626 100644
--- a/drivers/staging/r8188eu/os_dep/ioctl_linux.c
+++ b/drivers/staging/r8188eu/os_dep/ioctl_linux.c
@@ -1709,11 +1709,9 @@ static int rtw_wx_set_gen_ie(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
{
- int ret;
struct adapter *padapter = (struct adapter *)rtw_netdev_priv(dev);
- ret = rtw_set_wpa_ie(padapter, extra, wrqu->data.length);
- return ret;
+ return rtw_set_wpa_ie(padapter, extra, wrqu->data.length);
}
static int rtw_wx_set_auth(struct net_device *dev,
--
2.25.1
Powered by blists - more mailing lists