staging: r8188eu: simplify error handling
authorMartin Kaiser <martin@kaiser.cx>
Sun, 3 Apr 2022 16:54:31 +0000 (18:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Apr 2022 14:32:42 +0000 (16:32 +0200)
commitd3a0a1dccc20618efdb575f5d95b746a7c4e2a3e
treeef4dc2b9bf63b7c09b7568abb11cd15a07feb7d6
parentd296a81b551eeefdcd2cd5f7d28e6a7a7a089668
staging: r8188eu: simplify error handling

Simplify the error handling in validate_recv_data_frame. The function does
not have to do any cleanup for errors, we can return immediately.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220403165438.357728-5-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_recv.c