diff options
author | Martin Kaiser <martin@kaiser.cx> | 2021-04-08 21:55:59 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-04-09 16:17:23 +0200 |
commit | ea21efe66253191163ad9384b19e0f8d02254ce6 (patch) | |
tree | c3dbb5ba4d581c58678738b18bdf31042f6194d0 /drivers | |
parent | ddc7e53e5eca4fa237ce3b1cc0a5f67674a1cdad (diff) | |
download | linux-ea21efe66253191163ad9384b19e0f8d02254ce6.tar.bz2 |
staging: rtl8188eu: remove duplicate if statement
There's two identical checks if the device was stopped or unplugged.
Remove one of them.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20210408195601.4762-10-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/rtl8188eu/core/rtw_cmd.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_cmd.c b/drivers/staging/rtl8188eu/core/rtw_cmd.c index 4e4cac1ad6be..e1bf4ce9ab9d 100644 --- a/drivers/staging/rtl8188eu/core/rtw_cmd.c +++ b/drivers/staging/rtl8188eu/core/rtw_cmd.c @@ -191,13 +191,6 @@ int rtw_cmd_thread(void *context) if (wait_for_completion_interruptible(&pcmdpriv->cmd_queue_comp)) break; - if (padapter->bDriverStopped || - padapter->bSurpriseRemoved) { - DBG_88E("%s: DriverStopped(%d) SurpriseRemoved(%d) break at line %d\n", - __func__, padapter->bDriverStopped, - padapter->bSurpriseRemoved, __LINE__); - break; - } _next: if (padapter->bDriverStopped || padapter->bSurpriseRemoved) { |