Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2613864pxb; Sun, 17 Oct 2021 20:32:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+VHH1GSCRybT6LQ2n9I8a23ygXB82/fa1CeSZKx0rzHDR7s35PxCjtaoUXJ4Zjsn+I5wE X-Received: by 2002:a63:f155:: with SMTP id o21mr21055818pgk.218.1634527941816; Sun, 17 Oct 2021 20:32:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634527941; cv=none; d=google.com; s=arc-20160816; b=pB0U6bvAegFXqZaVFoMe/3wE4Lx5V18TTyTvGscal4uljVczvuvlYXyA6daovDvgA3 7msggiB7Um3XpE/fLdxuI/LNReB3A2fLKI2x+r5jXoCI1uzdfMqfupYVQZuXhsud73jU AcLtFxzHvAQzXE2R/VmfxJlIdntIYxEfxdyIbEFVnedM+KLqVCMTROwvadfjVdN0jbWR xK4aiZf/YwfTHdXMyzpoR8uHtCH448TLSvw++E01noR4wr7ZWJ8HvkimOSKInAJbnM3O ban84CYkoF24w6C2s8TCjd8zI2gHZ7Ca6RsMV59uRmbTum8Gpmnj+Z5z9F2mfmDbTiUn M0tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=hFd6Uah3NniMg3o1ywmw2NEUpEBbBPOk01NwU5brrts=; b=rQkYlTZA7aaxn9n+EQRHcZt7YwB+7WVnN0OvugY2RWdpVq5afw5vGsfMtZT9GQQ0bd qi1dg5E3Sk1kR6FeV8PSUQIcr5KdKPE6NxIlIkgDCSJ3qol0Y5JLBlU3QnGjHlubEIHH 0mzRdUe/zF1i8IgklWeuFnutD4ixOHY2p/+ekv37PfOqJdzdYWVXtP++CuVzpJoV5Fa+ 016lkBGx7CfXwz1oW0qrOSV36eh1UlimdSEiO44hKolVLmoLiyb2k+VOVN61h29Cu36V LcI50obgX9uy5L1EUaA6eqpQudWlfXZtCRzWZ86M8BnQDGCmLlwEAhrSwqyi3gHNxVep 1ydQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g187si17731730pgc.477.2021.10.17.20.32.09; Sun, 17 Oct 2021 20:32:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240014AbhJPKBh (ORCPT + 98 others); Sat, 16 Oct 2021 06:01:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235573AbhJPKBg (ORCPT ); Sat, 16 Oct 2021 06:01:36 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85A25C061570 for ; Sat, 16 Oct 2021 02:59:28 -0700 (PDT) Received: from martin by viti.kaiser.cx with local (Exim 4.89) (envelope-from ) id 1mbgTK-0003KE-RK; Sat, 16 Oct 2021 11:59:22 +0200 Date: Sat, 16 Oct 2021 11:59:22 +0200 From: Martin Kaiser To: "Fabio M. De Francesco" Cc: Larry Finger , Phillip Potter , Greg Kroah-Hartman , Dan Carpenter , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] staging: r8188eu: Remove redundant 'if' statement Message-ID: <20211016095922.4jf7nkwycgkfectz@viti.kaiser.cx> References: <20211016091042.19614-1-fmdefrancesco@gmail.com> <20211016091042.19614-4-fmdefrancesco@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211016091042.19614-4-fmdefrancesco@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: Martin Kaiser Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thus wrote Fabio M. De Francesco (fmdefrancesco@gmail.com): > Remove a redundant 'if' statement. > Signed-off-by: Fabio M. De Francesco > --- > drivers/staging/r8188eu/core/rtw_cmd.c | 6 ------ > 1 file changed, 6 deletions(-) > diff --git a/drivers/staging/r8188eu/core/rtw_cmd.c b/drivers/staging/r8188eu/core/rtw_cmd.c > index 2900c31d8ec9..2263e35b45cb 100644 > --- a/drivers/staging/r8188eu/core/rtw_cmd.c > +++ b/drivers/staging/r8188eu/core/rtw_cmd.c > @@ -255,12 +255,6 @@ int rtw_cmd_thread(void *context) > if (wait_for_completion_killable(&pcmdpriv->enqueue_cmd)) > 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) { > -- > 2.33.0 Acked-by: Martin Kaiser