Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3319148pxj; Mon, 7 Jun 2021 07:52:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwT5TCRW2nlwcoCDxY2O8mFE4ZoUcnGQKlR5BOJVgfyV+rYSifYoUstaKjoFOT6+EWSpF0M X-Received: by 2002:aa7:db16:: with SMTP id t22mr20361823eds.49.1623077535920; Mon, 07 Jun 2021 07:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623077535; cv=none; d=google.com; s=arc-20160816; b=n3L6paNqMrZOD6+7aEJHPHF7+ovrqbH5/PPMolKt4Q49pDIqwe3DgoU+Hv+IGQkXoD W5y17jvEHasSd4NTJyLFRf7BLMZZJmhLM+2ZpKzJHaSqHcmP28o1pj9Vg0hWq4vB1dJr sv8Kt0UEaqafA0uJjUa8P1FVfdlY7tz5l/daw7rCJzwtNVuOlMwYNb17K4jrQIJGlQ0w +XXxS/rHWr/ek2Xzhd78glNwsqKGpckLtbrFILdkej8bjNqcEEFi5siDX/jNKqcDFjX3 O7+FMWsyQ7dnV2zi9gRQgrM5RoVg2vw7aMq7PerJuAjWCbrcPR7lL+qMNmgoBLjzSdm/ TZWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=KV3zPs4im4phSjU/52hl/BfQSATdJYqhk/PrHcx2zz0=; b=ngPvmkQxUPrfhJnVvTzvMCQ7Ui+hc7oH6ZE6HcMOp0NAmbJ1+QARpLva2GI90WYaDH AYc34XNJMY39cKFklrP3jHyyS9KHzkvjL5fvdcVYcIFfF3lgyA/JV6MTdDNSQAxCXdyC c13LBGDw+BrDsN4gdZ9fKjosLtAKQwyeVjbmqlpIUg9dTxQd8krqCuQb5m1I22pBxK9R 0/fPV/uFGwW+pHU1fBzJ112iFCCxGqlZOnzknknrNyoAAHLSUpOvV6xE+GEJiJBBj+s/ +iSYDZ1WliLAJgzVbawmpiuX3XGizzY1yMV2S+KHw0Hgipxhrq0cqQv1I+4v4vQh6kcC SJXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nCT2Uck+; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 8si15330224ejx.637.2021.06.07.07.51.52; Mon, 07 Jun 2021 07:52:15 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nCT2Uck+; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230193AbhFGOwI (ORCPT + 99 others); Mon, 7 Jun 2021 10:52:08 -0400 Received: from mail-wm1-f41.google.com ([209.85.128.41]:35351 "EHLO mail-wm1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230256AbhFGOwI (ORCPT ); Mon, 7 Jun 2021 10:52:08 -0400 Received: by mail-wm1-f41.google.com with SMTP id k5-20020a05600c1c85b02901affeec3ef8so2563917wms.0 for ; Mon, 07 Jun 2021 07:50:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=KV3zPs4im4phSjU/52hl/BfQSATdJYqhk/PrHcx2zz0=; b=nCT2Uck+ppudDmlZd58SohO6wRPIWG5d2DSvA3RejmUNR0hKuOtAJSxgr6xD1Sz5d2 8oWB8Gjaa4VrCgACwRfTXsdavosuLKerEF6gY79l0xErlRHAJNj0W545e7saKMNpKSE9 baxJ/eyeDEvp3FWIEiK8CY98x1iZSkrumTzb+BW37VbXOy/tdd3Nu5lAJU1mjDjIHvIP qTuFFub28DMAd4vLZ7iF0MT/xtGkIW0Gl+7hzgERcWGCaOJUFmY/WLDRnL/92VnOERRX R9+426CC70bePn2S6Etj66uYRV0O3BuZTck2xQSJeO1953C3/+DiO62jhnmBH8YOV6qK 068w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KV3zPs4im4phSjU/52hl/BfQSATdJYqhk/PrHcx2zz0=; b=nJ5Pd708ckQ9yGq9nU6u4z9qB+0QLqiWvRgwxgAyXJB+uTOx3vVA+XG4PPHGaMiIZ+ k6lZWg0VlRdzNuyvaae/XsU88iOPW8vfdID5fOq/+34r8QV6PWYdcUUZkn+JpWbsndXv p7y97DKeZPFuG/jdCahy4o08x0wjODG1Dvob5vIkFqgQVEtCMLt7/bIPaGAisx7YaznJ u5kPT2XPgE8Vae2xS5uoDfHhzEVzr0GSOSvU5X1rt8ZkOGJlXEAgB60qki8rbbNScguW r/W0+mY3yGGLzPpYn6cK6QHHdRvUo3YDXa2xwFmpHl0mEkx8iRUiiI8RFlRdbm/OEkxT +e9g== X-Gm-Message-State: AOAM532zEqUSgzSRz/NMfyUvaOPlFTXpyvpAFaMPROQ4yED3jj1uNzzd yZaHMCJgawlRyqsVMYbo7dk= X-Received: by 2002:a05:600c:1994:: with SMTP id t20mr17320874wmq.177.1623077356153; Mon, 07 Jun 2021 07:49:16 -0700 (PDT) Received: from agape.jhs ([5.171.73.82]) by smtp.gmail.com with ESMTPSA id n13sm18372021wrg.75.2021.06.07.07.49.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 07:49:16 -0700 (PDT) Date: Mon, 7 Jun 2021 16:49:13 +0200 From: Fabio Aiuto To: "Fabio M. De Francesco" Cc: Greg Kroah-Hartman , Joe Perches , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] staging: rtl8723bs: os_dep: Remove conditions with no effects Message-ID: <20210607144912.GA1401@agape.jhs> References: <20210606074216.26495-1-fmdefrancesco@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210606074216.26495-1-fmdefrancesco@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 06, 2021 at 09:42:16AM +0200, Fabio M. De Francesco wrote: > Removed conditions with no effects. Detected by Coccinelle. > It seems that these conditions with no effects had been inadvertently > left while deleting code that had to be conditionally compiled by > unused definition CONFIG_AP_WOWLAN (see commit dc365d2cc579). > > Signed-off-by: Fabio M. De Francesco > --- > > v1 -> v2: Rewrote the changelog according to suggestion by > Joe Perches > > drivers/staging/rtl8723bs/os_dep/os_intfs.c | 11 ++--------- > 1 file changed, 2 insertions(+), 9 deletions(-) > > diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/rtl8723bs/os_dep/os_intfs.c > index 213ec5b4ce98..2035573ee5a0 100644 > --- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c > +++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c > @@ -1187,10 +1187,7 @@ void rtw_suspend_common(struct adapter *padapter) > > rtw_ps_deny_cancel(padapter, PS_DENY_SUSPEND); > > - if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) > - rtw_suspend_normal(padapter); > - else > - rtw_suspend_normal(padapter); > + rtw_suspend_normal(padapter); > > netdev_dbg(padapter->pnetdev, "rtw suspend success in %d ms\n", > jiffies_to_msecs(jiffies - start_time)); > @@ -1268,11 +1265,7 @@ int rtw_resume_common(struct adapter *padapter) > > netdev_dbg(padapter->pnetdev, "resume start\n"); > > - if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) { > - rtw_resume_process_normal(padapter); > - } else { > - rtw_resume_process_normal(padapter); > - } > + rtw_resume_process_normal(padapter); > > hal_btcoex_SuspendNotify(padapter, 0); > > -- > 2.31.1 > > Thank you Fabio :) Reviewed-by: Fabio Aiuto