diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2018-10-17 10:15:34 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-07 13:08:28 +0100 |
commit | c3e43d8b958bd6849817393483e805d8638a8ab7 (patch) | |
tree | 3e4d683aa9d18b5d2a09ea32d3047405b58c0f59 /drivers/staging | |
parent | 9a1ec4eb6f3722a65a267bb7d14c371d73f66c5b (diff) | |
download | linux-stable-c3e43d8b958bd6849817393483e805d8638a8ab7.tar.gz linux-stable-c3e43d8b958bd6849817393483e805d8638a8ab7.tar.bz2 linux-stable-c3e43d8b958bd6849817393483e805d8638a8ab7.zip |
staging: rtl8723bs: Fix the return value in case of error in 'rtw_wx_read32()'
We return 0 unconditionally in 'rtw_wx_read32()'.
However, 'ret' is set to some error codes in several error handling paths.
Return 'ret' instead to propagate the error code.
Fixes: 554c0a3abf216 ("staging: Add rtl8723bs sdio wifi driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c index 28bfdbdc6e76..b8631baf128d 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c @@ -2289,7 +2289,7 @@ static int rtw_wx_read32(struct net_device *dev, exit: kfree(ptmp); - return 0; + return ret; } static int rtw_wx_write32(struct net_device *dev, |