staging: r8188eu: simplify rtw_make_wlanhdr's error handling
authorMartin Kaiser <martin@kaiser.cx>
Fri, 30 Dec 2022 18:06:36 +0000 (19:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jan 2023 18:31:22 +0000 (19:31 +0100)
commita6b25e291f22c8290203b3426b66c49099688b75
treeeddddfcb37d973761eac3d8d96a5292796b17269
parente263d79eb1a49ac217793cd77817e61ad7843fd8
staging: r8188eu: simplify rtw_make_wlanhdr's error handling

Simplify the error handling in rtw_make_wlanhdr. Exit immediately instead
of jumping to the end of the function. We don't have to do any clean-up.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20221230180646.91008-11-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_xmit.c