staging: rtl8188eu: remove duplicate if statement
authorMartin Kaiser <martin@kaiser.cx>
Thu, 8 Apr 2021 19:55:59 +0000 (21:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Apr 2021 14:17:23 +0000 (16:17 +0200)
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>
drivers/staging/rtl8188eu/core/rtw_cmd.c

index 4e4cac1ad6be2ac7a0df92740211769da5c33489..e1bf4ce9ab9d04713607eddbd9f055b84efa0f8a 100644 (file)
@@ -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) {