staging: r8188eu: os_dep: Change the return type of function
authorSaurav Girepunje <saurav.girepunje@gmail.com>
Sun, 7 Nov 2021 16:43:10 +0000 (22:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Nov 2021 09:02:03 +0000 (10:02 +0100)
commitd79c38617440b1f30d5a2936961fb7adbc46fcc4
tree2818e9f83010046c049ef8d6e9515605e39a85e0
parent4b99dd7d212bd8bd539bfc7d689d8b6e366f22a7
staging: r8188eu: os_dep: Change the return type of function

Change the return type of rtw_init_default_value function
from u8 to void. This function always return success. This
is called from rtw_init_drv_sw where the return value from
this function is assign to local variable but the local variable
value is never checked. After change the return type to void
remove the local variable ret8 in rtw_init_drv_sw function.

Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
Link: https://lore.kernel.org/r/YYgCHkVXFQ4r9dVp@Sauravs-MacBook-Air.local
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/os_dep/os_intfs.c