mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 10:59:18 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d54b6ac14d
commit
fa2a8d4284
@@ -4496,9 +4496,6 @@ int issue_probereq_ex(struct adapter *padapter, struct ndis_802_11_ssid *pssid,
|
||||
|
||||
i++;
|
||||
|
||||
if (padapter->bDriverStopped || padapter->bSurpriseRemoved)
|
||||
break;
|
||||
|
||||
if (i < try_cnt && wait_ms > 0 && ret == _FAIL)
|
||||
msleep(wait_ms);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user