Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5209434pxj; Wed, 9 Jun 2021 11:45:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwo1KPtu9NxHRVbuyaZLeBhh1UcrGuVwdr6UGKG5Nxd9vtdZhEA4E63qzfwIXEYusHUs9MZ X-Received: by 2002:a17:907:f9b:: with SMTP id kb27mr1195299ejc.44.1623264314322; Wed, 09 Jun 2021 11:45:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623264314; cv=none; d=google.com; s=arc-20160816; b=PWnFVipdI1qT1VoG1HXn+uMs2bCICZO9jeXKl3p5JPH1NYuoFBsZPhBprA8YveRaTN BDSkth3oOy5LlMT53sKJJyMrUoY0WUkKEjMM2KZ4KRI0mS3z1KKYaysk2H7Tn1NnE0dn SWFrNLofAzBpZ+zFL16OWZ6eqwETjHkEzQnnUJNJktHAim7n0lJE1tuBoPBfVW5iG059 lf3xl+TH16B3JEeDR9aMpUfH0U3ULqPCfI6t8Z8CoCKcUf3dIVDMCbGifHzIijcuFbp4 cWCKXnuPFamPV/tti2KroMPGTbGMlektV8oBCOp3BXjcOqMsRd4iNWLOliupSS/rO1Ss pBMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ajDDaR+bnT1aT60EipCvANXkmucJPGQCQTP3is1EDJo=; b=S5ADOonwFN4z3uxEbriNsZ7Jh6t3qbd/ca83hTmOTIb2lk6AJ5ReGdTBpEvE81xdlk /uOVcw2yJV4MuyF+DGw0L1A7GMIISRFYaj8Xs1XcKuMQ6OoTz6hsLavemOKaJkDH7SUk OSSy/Wp5nN3YAs6Uk3ieBYyVHZ3CpRxDKek2tem+ObxlMf3jDzHMG3MuKpSBFCJHhfPY fsiR+2gNH2/Ddjl+KuEHXSjrTeu3kaB/8z2xJa6gvYN0L7iXRinZez6a2QVlyK7ZsfVG 4dIENkF4+puICifM64xMQX6o8LPsW8Pp1NzVmNcSsq73iWAs8pG9GUDavqpoLqbsAI0J OoPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XMzNZoTp; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z8si422229eji.363.2021.06.09.11.44.48; Wed, 09 Jun 2021 11:45:14 -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=@linuxfoundation.org header.s=korg header.b=XMzNZoTp; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232910AbhFIMef (ORCPT + 99 others); Wed, 9 Jun 2021 08:34:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:48030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230377AbhFIMee (ORCPT ); Wed, 9 Jun 2021 08:34:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 959AF61183; Wed, 9 Jun 2021 12:32:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623241960; bh=wtbyrMKSuMZ+ubnpoHwvsXFSnwWGhrtAlMZjlqRbpbw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XMzNZoTpRgVbaEqerw4ctjcAhPzZml970IN96scfxBnkR8QXNdCWllsh7Oi/YpC1D XIl10gTlw+etrclCoBADLqKTcZfhR0y8O349e8xZF1SP1kEd58bwUsSnW+q13yE9Ci JuTGMa1vUE/xbvfnDEyrXzPLC2WZeqdYzSltyJfg= Date: Wed, 9 Jun 2021 14:25:36 +0200 From: Greg Kroah-Hartman To: "Fabio M. De Francesco" Cc: 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: References: <20210606074216.26495-1-fmdefrancesco@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210606074216.26495-1-fmdefrancesco@gmail.com> 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 This patch adds a build warning: drivers/staging/rtl8723bs/os_dep/os_intfs.c: In function ‘rtw_resume_common’: drivers/staging/rtl8723bs/os_dep/os_intfs.c:1264:27: warning: unused variable ‘pmlmepriv’ [-Wunused-variable] 1264 | struct mlme_priv *pmlmepriv = &padapter->mlmepriv; | ^~~~~~~~~ LD [M] drivers/staging/rtl8723bs/r8723bs.o So I can not take it, please fix up and resend. thanks, greg k-h