diff options
author | Abdun Nihaal <abdun.nihaal@gmail.com> | 2022-01-29 21:34:07 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-01-31 14:02:46 +0100 |
commit | 42475735ad451b0fdaed384be280d94bb1763b6d (patch) | |
tree | cd8178c26855f15bfc5ceaf690bb6a7a6646d652 /drivers/staging/r8188eu/os_dep/ioctl_linux.c | |
parent | 7e41c7db279c2e71c6503cb22f49c4a4b46040d6 (diff) | |
download | linux-42475735ad451b0fdaed384be280d94bb1763b6d.tar.bz2 |
staging: r8188eu: remove unneeded variable in rtw_wx_get_essid
Remove unneeded return variable that is initialized to 0 and not
assigned after.
Found using Coccinelle
Signed-off-by: Abdun Nihaal <abdun.nihaal@gmail.com>
Link: https://lore.kernel.org/r/d0208689dffce91c52afbd5938b2704a8b1b554e.1643466748.git.abdun.nihaal@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/os_dep/ioctl_linux.c')
-rw-r--r-- | drivers/staging/r8188eu/os_dep/ioctl_linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/r8188eu/os_dep/ioctl_linux.c b/drivers/staging/r8188eu/os_dep/ioctl_linux.c index b9f9698d70cf..3a60e1f81592 100644 --- a/drivers/staging/r8188eu/os_dep/ioctl_linux.c +++ b/drivers/staging/r8188eu/os_dep/ioctl_linux.c @@ -1383,7 +1383,7 @@ static int rtw_wx_get_essid(struct net_device *dev, struct iw_request_info *a, union iwreq_data *wrqu, char *extra) { - u32 len, ret = 0; + u32 len; struct adapter *padapter = (struct adapter *)rtw_netdev_priv(dev); struct mlme_priv *pmlmepriv = &padapter->mlmepriv; struct wlan_bssid_ex *pcur_bss = &pmlmepriv->cur_network.network; @@ -1399,7 +1399,7 @@ static int rtw_wx_get_essid(struct net_device *dev, wrqu->essid.length = len; wrqu->essid.flags = 1; - return ret; + return 0; } static int rtw_wx_set_rate(struct net_device *dev, |