Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6579679ybn; Sun, 29 Sep 2019 23:47:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwz6d2Gs6VscVQoi8zwmFLkQW6AwsMV5m4B6pMQeBPVXHxHQcNIrxJH+c/9tzPayyPvJv3f X-Received: by 2002:a17:906:944b:: with SMTP id z11mr17287970ejx.46.1569826027803; Sun, 29 Sep 2019 23:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569826027; cv=none; d=google.com; s=arc-20160816; b=cNrmHndDk5dTc+TQAq/jHyr5OyRRuT/z0rSVMZp8JpNY04YrFeQi2//QcMd1FYklo8 v8wLql3MuxZcRAvH4sZ8xeq1v3gWrLgxmzmlIr76ccMFpZOFP8+D2G4ZBB+iQg1Fqv1x EtWQMbdKZ6zlcHlxBw/biYpoLQL4J/gHDrmHSCOmNXAqddAFZFv754bXpL42FKvjZkbW iGQ6pzNJ8sZ+annB+y480dpv3LxmTbt234MmtKVKB0ApIT8UN/af5pdzpDC7QLlUC2AY X0HDMyiHwyw2wlvrk/KCs/VbW5p9lB0SDfIVeUXSnlKnimBMnkGl/8I9utUGeVXCSYXN LSnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=HCVtq3VkvPRMqb5sbgTVWCIjrNTJ56mcSeBJWI0lZ/4=; b=lbrnNNoau63AP7fYKF0lAx3FuP3YU26eTpG016iMNFKYVv9JXrykcDVU4eA1JHFfQ5 R6WwGrl6w85Xzs6A1J8XOB531Ff9J/Jg3kx6sCZcLXe6ga//oXiPnWTK+hd+lLQAiqCy Y/XImJE+moHb842/l7AguuaFQxyWlAYTs3boIEvs5K92uzEWyfWOREpYJI2u++johWsj Dsec68DZ4X8ZMLS6w+u8EoWuHpfft7gxZJ+ZLyzH4nLagslCysjOJ9MuPPMEdBOyi+uo XrsNmFi4RLc7Rp/Z1vfYt2UAz3Vzf/pmqPwYBegPI6EnkNPFI4VTGPsLb/lYZbYlL9DA TzeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si6316801eja.9.2019.09.29.23.46.42; Sun, 29 Sep 2019 23:47:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729283AbfI3Gqe (ORCPT + 99 others); Mon, 30 Sep 2019 02:46:34 -0400 Received: from mga17.intel.com ([192.55.52.151]:40066 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729022AbfI3Gqe (ORCPT ); Mon, 30 Sep 2019 02:46:34 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Sep 2019 23:46:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,565,1559545200"; d="scan'208";a="220553529" Received: from oamoreno-mobl.ccr.corp.intel.com ([10.252.17.131]) by fmsmga002.fm.intel.com with ESMTP; 29 Sep 2019 23:46:31 -0700 Message-ID: Subject: Re: [PATCH] iwlwifi: dvm: excessive if in rs_bt_update_lq() From: Luciano Coelho To: Denis Efremov , Kalle Valo Cc: Johannes Berg , Emmanuel Grumbach , Intel Linux Wireless , "David S. Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 30 Sep 2019 09:46:31 +0300 In-Reply-To: <20190925204935.27118-1-efremov@linux.com> References: <20190925204935.27118-1-efremov@linux.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-09-25 at 23:49 +0300, Denis Efremov wrote: > There is no need to check 'priv->bt_ant_couple_ok' twice in > rs_bt_update_lq(). The second check is always true. Thus, the > expression can be simplified. > > Signed-off-by: Denis Efremov > --- > drivers/net/wireless/intel/iwlwifi/dvm/rs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/rs.c b/drivers/net/wireless/intel/iwlwifi/dvm/rs.c > index 74229fcb63a9..226165db7dfd 100644 > --- a/drivers/net/wireless/intel/iwlwifi/dvm/rs.c > +++ b/drivers/net/wireless/intel/iwlwifi/dvm/rs.c > @@ -851,7 +851,7 @@ static void rs_bt_update_lq(struct iwl_priv *priv, struct iwl_rxon_context *ctx, > * Is there a need to switch between > * full concurrency and 3-wire? > */ > - if (priv->bt_ci_compliance && priv->bt_ant_couple_ok) > + if (priv->bt_ci_compliance) > full_concurrent = true; > else > full_concurrent = false; Thanks, Denis! I have applied this to our internal tree and it will reach the mainline following our usual upstreaming process. -- Cheers, Luca.