staging: rtl8723bs: Fix the return value in case of error in 'rtw_wx_read32()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 17 Oct 2018 08:15:34 +0000 (10:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 08:24:29 +0000 (09:24 +0100)
commitde7e3f88dd5c594d9ea1fac6a176716435d905bc
tree7c2bdc6fcb8ccc69e6bd2096bceccdf738f19c65
parent748b7861bce5db2777432448e4a4161129273ad2
staging: rtl8723bs: Fix the return value in case of error in 'rtw_wx_read32()'

[ Upstream commit c3e43d8b958bd6849817393483e805d8638a8ab7 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c