diff options
author | Nishka Dasgupta <nishkadg.linux@gmail.com> | 2019-06-26 12:20:54 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-01 09:07:03 +0200 |
commit | 1f22b8f1bd6d2de4d505e3e112b689ed41539786 (patch) | |
tree | b0fa82e1d1787d092b7c99ee8c6905668327f7f4 /drivers/staging | |
parent | 5d32630f170c5e200381f3d26ffe179f58f61b66 (diff) | |
download | linux-stable-1f22b8f1bd6d2de4d505e3e112b689ed41539786.tar.gz linux-stable-1f22b8f1bd6d2de4d505e3e112b689ed41539786.tar.bz2 linux-stable-1f22b8f1bd6d2de4d505e3e112b689ed41539786.zip |
staging: rtl8188eu: os_dep: Remove return variable
Remove return variable as its value is not altered between
initialisation and return.
Issue found with Coccinelle.
Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c index eaa4adb32a0d..f47e51a6a5ec 100644 --- a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c @@ -1686,7 +1686,7 @@ static int rtw_wx_get_enc(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *keybuf) { - uint key, ret = 0; + uint key; struct adapter *padapter = (struct adapter *)rtw_netdev_priv(dev); struct iw_point *erq = &(wrqu->encoding); struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); @@ -1744,7 +1744,7 @@ static int rtw_wx_get_enc(struct net_device *dev, break; } - return ret; + return 0; } static int rtw_wx_get_power(struct net_device *dev, |