summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu
diff options
context:
space:
mode:
authorAya Mahfouz <mahfouz.saif.elyazal@gmail.com>2015-02-27 14:54:23 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-01 16:20:00 -0800
commit5f70306ba0972a13be49c97ade1324b22f6ca1c9 (patch)
tree7a4812cb3b879898b17bb757a4375616d76a3c4d /drivers/staging/rtl8188eu
parent179e7dcde410d820f38ad80b28e9efe26030bb8d (diff)
downloadop-kernel-dev-5f70306ba0972a13be49c97ade1324b22f6ca1c9.zip
op-kernel-dev-5f70306ba0972a13be49c97ade1324b22f6ca1c9.tar.gz
staging: rtl8188eu: os_dep: remove unused variable
This patch removes a variable that was simply used to store the return value of a function call before returning it. The issue was detected and resolved using the following coccinelle script: @@ identifier len,f; @@ -int len; ... when != len when strict -len = +return f(...); -return len; Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu')
-rw-r--r--drivers/staging/rtl8188eu/os_dep/ioctl_linux.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c
index 24a8f5a..58998f2 100644
--- a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c
+++ b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c
@@ -1796,11 +1796,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,
OpenPOWER on IntegriCloud