staging: r8188eu: exit straight away if we have no pspoll frame
authorMartin Kaiser <martin@kaiser.cx>
Sun, 3 Apr 2022 16:45:24 +0000 (18:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Apr 2022 14:31:07 +0000 (16:31 +0200)
commit1988a52484af6ee69673ff241636827bf743e246
tree12ca68f241ba183da8f5d5e31a024b5922fef333
parent45d433b817970714fc9d77a7033631d0f47ce97c
staging: r8188eu: exit straight away if we have no pspoll frame

validate_recv_ctrl_frame wraps nearly all of its code into a large
if (pspoll) { ... } clause.

Revert this condition and exit if the incoming frame is not a pspoll
frame.

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