staging: r8188eu: change return type of rtw_set_802_11_disassociate to void
authorPhillip Potter <phil@philpotter.co.uk>
Thu, 3 Nov 2022 23:06:32 +0000 (23:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Nov 2022 15:26:34 +0000 (16:26 +0100)
commitdcb18f5140ab7b4ea23417598c601b9468141d99
tree347f40c0f56be5d9614f1b236871e84fe9131a6f
parent1d6290639bfce477f71392392436d2aa830bca2e
staging: r8188eu: change return type of rtw_set_802_11_disassociate to void

Change return type of rtw_set_802_11_disassociate to void. This function
always returns 'true' no matter what, so there is no need to return a
value, and no need to check for it in the two call sites within
rtw_wx_set_mlme. Also, as we are no longer using ret in rtw_wx_set_mlme
except as the return value, just remove it and return 0 directly.

Suggested-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20221103230632.6946-1-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_ioctl_set.c
drivers/staging/r8188eu/include/rtw_ioctl_set.h
drivers/staging/r8188eu/os_dep/ioctl_linux.c