staging: r8188eu: drop another removal/stop check
authorMartin Kaiser <martin@kaiser.cx>
Mon, 7 Nov 2022 20:28:23 +0000 (21:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Nov 2022 15:29:55 +0000 (16:29 +0100)
commitfa2a8d4284225fbc0ee3db4760d6d7339586d61d
tree4e2c89c33c98c75dd1c70c1496cc899afdf88ed5
parentd54b6ac14d3f1ac033fe88a7f9935ba9f1f47077
staging: r8188eu: drop another removal/stop check

There's no need to check bDriverStopped and bSurpriseRemoved in
issue_probereq_ex.

The code path looks like

issue_probereq_ex
   _issue_probereq
      dump_mgntframe
      or
      dump_mgntframe_and_wait_ack

All paths from dump_mgntframe check the two variables.
dump_mgntframe_and_wait_ack contains a check as well.

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