Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1833089ybn; Thu, 26 Sep 2019 02:56:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzq+Of9QjJjUhkLaX7sfVdXo69YsnQI8Nnor62ejLYgTHqfzwl+UeMrij13jFpvq3E6JHM9 X-Received: by 2002:a50:87ca:: with SMTP id 10mr2560115edz.77.1569491808100; Thu, 26 Sep 2019 02:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569491808; cv=none; d=google.com; s=arc-20160816; b=CgGN1JVnOaUNFE47xbB0wfSr6ONe02+y6SgSZQfZGfHYyuH7Wme9Uw16lNL7/gWtP7 CDKrxO8ONcfUWjAMpCnJbt5HkW4gsl7QeWndMRnEyyD89dzax5J1oo9qSDZ0pZ6DCfg+ CHq1kuPhOBcFcKsVL7qOV57EvbBrrrf4VaJ3cb/nckRjSEhDaOyoGY2uGFllaO2LTFyB G/BCNW0qtBe6GVO2kS564ERzib1Bi6QCZEXO1pdodcC8oRYGJgvjGCjMQ2V9zso/cnzV Egy0x8S8x6+GNoEDQc0+V3ahJa80hg7QTzYhFsCC3TSLAaAvE4nr2iNpWFsKCLFXS0KD CM6g== 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 :message-id:date:subject:cc:to:from; bh=9msODsp1f3ntoBvQarVOQqQV429arne9yrJNCKUXVXc=; b=UTdbXbXWtMq3NlnyDLX4hStdHlcLSNtBK6M/VjBSjoItFCGVkNtR7NcloP+IabPz22 Kx0Ocyt3bvlzBNq/pUCcRzwzXfRluX79vTKQu73XVDclV6fmfUkxTyCB+zQZQqXPaj1p goPvVv1OGryBo9SkzkATCwG+QHO7HzJvBz0hi3BUyQx2RGdSqD1YX/O+HIpmnh7zVWgL MIZwejuvhwRGZTLPS809CNfbaPpTFRQxV6mNDU/rPJIY8WTDzV/T8tsOSppiPJMPcsb2 2+TYCDQjLezZpVG1cmY7+XGDL4/gxX/B58Xf4cOulksVP/3bxGlTsMSQIZZP0l9m0fEB xZXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si965854edc.321.2019.09.26.02.56.23; Thu, 26 Sep 2019 02:56:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393128AbfIYUcT (ORCPT + 99 others); Wed, 25 Sep 2019 16:32:19 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:35296 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389778AbfIYUcS (ORCPT ); Wed, 25 Sep 2019 16:32:18 -0400 Received: by mail-wm1-f65.google.com with SMTP id y21so176884wmi.0; Wed, 25 Sep 2019 13:32:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9msODsp1f3ntoBvQarVOQqQV429arne9yrJNCKUXVXc=; b=Z1wasGaUInOb/wgCSGocPXC2c3mEd23s6FKA3UPmT43zj/y4/xK7j39of/3TPy2wFM MO4Ny0LUIBqOzyynNcfMrakdwLT0nZSNqlQ5TEtBUrkmhpGcQdWzAZQX3EOMeIzXGxpW aN3SCjO5TyBaYg+JVEK5hMbb44E5tIT04vjW4oQ80R4XMwMAG93lKe1vwRPlblI4PiVD OQkjEx5M9aaupXxQQQHgxxptTXVGaimjWtgRduyHp+hIOaW7wD/JpX4qkAulI5gA9EX8 81LgP/FhQ6MQkdxCmgn6k+hcXn/lDaeTbCN6UQEA2l/8NEptfz9nEiOwB778O80KRWQZ bxBw== X-Gm-Message-State: APjAAAV2SGEyrgtEQunFxeIJgNrwDDJdKMoPjd1b7YwovWm7gtm1NNVS 9AOYFODxq8A+V1XyLz96vFw= X-Received: by 2002:a1c:9a46:: with SMTP id c67mr52161wme.115.1569443537037; Wed, 25 Sep 2019 13:32:17 -0700 (PDT) Received: from localhost.localdomain (99-48-196-88.sta.estpak.ee. [88.196.48.99]) by smtp.googlemail.com with ESMTPSA id t14sm105774wrs.6.2019.09.25.13.32.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 13:32:16 -0700 (PDT) From: Denis Efremov To: Kalle Valo Cc: Denis Efremov , Wright Feng , Chi-Hsien Lin , Hante Meuleman , Franky Lin , Arend van Spriel , "David S. Miller" , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] brcmsmac: remove duplicated if condition Date: Wed, 25 Sep 2019 23:31:52 +0300 Message-Id: <20190925203152.21548-1-efremov@linux.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The nested 'li_mimo == &locale_bn' check is excessive and always true. Thus it can be safely removed. Signed-off-by: Denis Efremov --- .../net/wireless/broadcom/brcm80211/brcmsmac/channel.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c index db783e94f929..5a6d9c86552a 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c @@ -496,13 +496,11 @@ brcms_c_channel_reg_limits(struct brcms_cm_info *wlc_cm, u16 chanspec, * table and override CDD later */ if (li_mimo == &locale_bn) { - if (li_mimo == &locale_bn) { - maxpwr20 = QDB(16); - maxpwr40 = 0; + maxpwr20 = QDB(16); + maxpwr40 = 0; - if (chan >= 3 && chan <= 11) - maxpwr40 = QDB(16); - } + if (chan >= 3 && chan <= 11) + maxpwr40 = QDB(16); for (i = 0; i < BRCMS_NUM_RATES_MCS_1_STREAM; i++) { txpwr->mcs_20_siso[i] = (u8) maxpwr20; -- 2.21.0