Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp311535ybc; Fri, 15 Nov 2019 23:19:31 -0800 (PST) X-Google-Smtp-Source: APXvYqwQ541bz78YojTglYgSb2OM9VLZACLra9ukEXxfwiKmem60JTUGcSfgt5CnXKDKlmZWXxwk X-Received: by 2002:a17:906:5c4d:: with SMTP id c13mr4281428ejr.80.1573888771438; Fri, 15 Nov 2019 23:19:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573888771; cv=none; d=google.com; s=arc-20160816; b=f06FflhwSK4F9lC6gsUjUw9OgtP8S8LooOLjBGr1fU4rB6hg14PQ00pRcF+48vfCH3 owR4ALOHJYfHoa4t7HuSKT4FCemMWZ2/PHJ6Odo8hekfBSA+cph3/npX0o6uMCwHXxMl lDACXHTez5SsQ7I0Hqssc6BJg5C+Z+355KGA3r9oF5UTr1Q5eesS7wLYhHotW6tRGlV0 eaCS3Y1ZcK/Glc/zc/0HerKwwNwRlkSh8GtqVktra/ZJPJX+NohjxtbzS3ENTZt3+4uB qNnCNy4dFII+apWLzHSpOX43CJ9hx4Hv+D6lDU058lPtyPKdyGh2VMxt642FAczcq3pP wwqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=ZYFSWH6Zj0i1FN6ShP14KbTMYbjgWEO3AKkR8C0S96w=; b=gYjligDf1IYHwi2Suu913hQlwAmHY7dcWfeWrOyfBk2GUDKfuanqA4lQ4VoNRCwuIB qfNYr4jfFnd1mbQ9efmoNeqv5fPIAYb7oiD01wbybrWn8Lv8B2r+pQb41Afb7dfahcHh JENaoIEKTOHg6Dz4uZ9Rx0aDoX3fEiGgWio3X5oLlsxGlCvEnmdsDySn+mc+FrlNbp70 JaKMteoSIbuVPHEhtbdHMt0G8lQcYKVqyyCd1e5Bx+rQb3TJ2B7mJsRfa9PB1LFE44IO v586Tn2lU0+o73eNqvSf3shJxYUCNeCI7hYqxc2b6FGnP4cP0Ae3JVHDUe2xO5fFeDW6 LyUw== 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 14si7356136eja.294.2019.11.15.23.18.46; Fri, 15 Nov 2019 23:19:31 -0800 (PST) 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 S1726166AbfKPHPe (ORCPT + 99 others); Sat, 16 Nov 2019 02:15:34 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:45606 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726034AbfKPHPe (ORCPT ); Sat, 16 Nov 2019 02:15:34 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 1CA9B7C7B863244442F8; Sat, 16 Nov 2019 15:15:31 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.439.0; Sat, 16 Nov 2019 15:15:23 +0800 From: zhengbin To: , , , , , , , CC: Subject: [PATCH -next] brcmfmac: remove set but not used variable 'mpnum','nsp','nmp' Date: Sat, 16 Nov 2019 15:22:47 +0800 Message-ID: <1573888967-104078-1-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c: In function brcmf_chip_dmp_get_regaddr: drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c:790:5: warning: variable mpnum set but not used [-Wunused-but-set-variable] drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c: In function brcmf_chip_dmp_erom_scan: drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c:866:10: warning: variable nsp set but not used [-Wunused-but-set-variable] drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c: In function brcmf_chip_dmp_erom_scan: drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c:866:5: warning: variable nmp set but not used [-Wunused-but-set-variable] They are introduced by commit 05491d2ccf20 ("brcm80211: move under broadcom vendor directory"), but never used, so remove them. Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c index dd586a9..a795d78 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/chip.c @@ -778,7 +778,6 @@ static int brcmf_chip_dmp_get_regaddr(struct brcmf_chip_priv *ci, u32 *eromaddr, { u8 desc; u32 val, szdesc; - u8 mpnum = 0; u8 stype, sztype, wraptype; *regbase = 0; @@ -786,7 +785,6 @@ static int brcmf_chip_dmp_get_regaddr(struct brcmf_chip_priv *ci, u32 *eromaddr, val = brcmf_chip_dmp_get_desc(ci, eromaddr, &desc); if (desc == DMP_DESC_MASTER_PORT) { - mpnum = (val & DMP_MASTER_PORT_NUM) >> DMP_MASTER_PORT_NUM_S; wraptype = DMP_SLAVE_TYPE_MWRAP; } else if (desc == DMP_DESC_ADDRESS) { /* revert erom address */ @@ -854,7 +852,7 @@ int brcmf_chip_dmp_erom_scan(struct brcmf_chip_priv *ci) u8 desc_type = 0; u32 val; u16 id; - u8 nmp, nsp, nmw, nsw, rev; + u8 nmw, nsw, rev; u32 base, wrap; int err; @@ -880,8 +878,6 @@ int brcmf_chip_dmp_erom_scan(struct brcmf_chip_priv *ci) return -EFAULT; /* only look at cores with master port(s) */ - nmp = (val & DMP_COMP_NUM_MPORT) >> DMP_COMP_NUM_MPORT_S; - nsp = (val & DMP_COMP_NUM_SPORT) >> DMP_COMP_NUM_SPORT_S; nmw = (val & DMP_COMP_NUM_MWRAP) >> DMP_COMP_NUM_MWRAP_S; nsw = (val & DMP_COMP_NUM_SWRAP) >> DMP_COMP_NUM_SWRAP_S; rev = (val & DMP_COMP_REVISION) >> DMP_COMP_REVISION_S; -- 2.7.4