staging: r8188eu: merge rtw_os_recvbuf_resource_alloc() into rtw_recv.c
authorMichael Straube <straube.linux@gmail.com>
Sun, 7 Aug 2022 18:15:35 +0000 (20:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Aug 2022 13:19:05 +0000 (15:19 +0200)
commitca623eb6def04c843937d6e4c7c5b50d907894e6
tree2b85805c61e1a969700cfe9acf6b28b8085d046b
parent401ae6efe3a21a3812b92eb49ea32a18a4416c50
staging: r8188eu: merge rtw_os_recvbuf_resource_alloc() into rtw_recv.c

Merge the functionality of the function rtw_os_recvbuf_resource_alloc()
into rtl8188eu_init_recv_priv(). Merging the functionality instead of
just making the function static improves readability and we have one
function less to care about when converting the uses of _FAIL/_SUCCESS
to normal kernel error code logic.

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220807181538.8499-3-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_recv.c
drivers/staging/r8188eu/include/recv_osdep.h
drivers/staging/r8188eu/os_dep/recv_linux.c