staging: r8188eu: remove rtw_endofpktfile()
authorMichael Straube <straube.linux@gmail.com>
Wed, 17 Aug 2022 06:32:23 +0000 (08:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Aug 2022 13:37:09 +0000 (15:37 +0200)
commitb56683d416aee135d2c208970d3d42cd886f47d8
tree88f18bf614a3862e78390d15e7197b71bbea7a0e
parent8379cf83fe6d57a12952de6dcaf7a7fbd7b364fc
staging: r8188eu: remove rtw_endofpktfile()

The function rtw_endofpktfile() just checks for pkt_len == 0.
Remove rtw_endofpktfile() and merge the check into the caller to
improve readability and simplify the driver code.

Reviewed-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220817063223.8140-1-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_xmit.c
drivers/staging/r8188eu/include/xmit_osdep.h
drivers/staging/r8188eu/os_dep/xmit_linux.c