From: Martin Kaiser Date: Thu, 8 Apr 2021 19:55:59 +0000 (+0200) Subject: staging: rtl8188eu: remove duplicate if statement X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ea21efe66253191163ad9384b19e0f8d02254ce6;p=linux.git 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 Link: https://lore.kernel.org/r/20210408195601.4762-10-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/core/rtw_cmd.c b/drivers/staging/rtl8188eu/core/rtw_cmd.c index 4e4cac1ad6be2..e1bf4ce9ab9d0 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) {