Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1494115ybc; Tue, 19 Nov 2019 22:36:09 -0800 (PST) X-Google-Smtp-Source: APXvYqyb7nqieI+ET5rXdT9JmLMKMq/MRnXTxFFNR3Dl1lgv7/TVp97W6aCFQeTjnZ19BqMJt+t3 X-Received: by 2002:a17:907:1114:: with SMTP id qu20mr3144230ejb.42.1574231769161; Tue, 19 Nov 2019 22:36:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574231769; cv=none; d=google.com; s=arc-20160816; b=xSLylWxIiJVsaxZmhpexfy3SeVWtlFf9GRMxZ4hUb3kjlKrSB9bH+cUtbAFeOie7FV J2s/eJ17Hc8moOZk7SAQ3JmCKW+RN+WUav4wjW2FMlEOnuu257kbkI6lRcnwxzn3dqAP qEYf5IWzBqk3JgnEyCr/SxqZxlnMOLinVjj4+cjIEh6e3XRlPlKdAMrqwQY97wAVpqhd 5h1V6VpNABh1Rg9K4eBZbEx+0hAnruHIDHoY4gTCaruo0RrIO/qRPVqFDmrqXrrwItSG M6srxKG+1ctWnDen6+30s3y9HC3gHStvBz8RquykaOK+dM7boTXhx+QFTjYiqez9MerP 0qZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :message-id:in-reply-to:date:references:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature; bh=gFEVEyCJ44eIgGzqbcYgdGix5M3pIxOlPuo7Q2HOaE4=; b=q70Zc+awXd02SQ3fmNO5n4iMcfHr7aTlTj1WQrQdZai9cdypO2XuwS3iaiFNZdrvXv U5fZUtpYsfG7Eqw9ddn6gw9v903cqh3vZi2i5fO9FxPLfmqHnnPXOGFqRXnfS0VfI2ZY oKnbyhbN2FBiwHOqbLQFY2PdO8Io2HWEwBhuCKLMHjYzCcB41HEUTwLDCxRiKeEFyXP2 ZpR6w6OdTYGIQTlZRXk20k+jZMx1+1ss6c7lX6y5hyWD2rrUvCwsrQ6e2RGKvaBPoI4I FSXdf8H3u752035WikOtlzT8Fi598ZMCmOkt1SLcyReZzzVHZgsLFB0BS4QHy9d9tNTp jm/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=Du4p9WLb; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b="Rcs/Xm03"; 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 63si17318941edl.131.2019.11.19.22.35.43; Tue, 19 Nov 2019 22:36:09 -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; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=Du4p9WLb; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b="Rcs/Xm03"; 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 S1727450AbfKTGec (ORCPT + 99 others); Wed, 20 Nov 2019 01:34:32 -0500 Received: from a27-188.smtp-out.us-west-2.amazonses.com ([54.240.27.188]:37664 "EHLO a27-188.smtp-out.us-west-2.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbfKTGec (ORCPT ); Wed, 20 Nov 2019 01:34:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=zsmsymrwgfyinv5wlfyidntwsjeeldzt; d=codeaurora.org; t=1574231671; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type; bh=p3O4v1U+XwO0r7HlswHbozlwB2rYAmXkQgj4NLIm5PM=; b=Du4p9WLb4Z8vEP7RNcEeVVpObApzUUK+9R37MHB2ya2c8sPSUxc6CN+4jqg+8D0S 7dWdBq/Rl5S5nGYOzKdvzCSU9IrcOuAr3zAQYhu2iXqa5q/3EO1CJzDdGvns4vOw6vL qqngKn1ASK7l3bqBk1zjbrOee3TpnNOYZBS5cA2o= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx; d=amazonses.com; t=1574231671; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type:Feedback-ID; bh=p3O4v1U+XwO0r7HlswHbozlwB2rYAmXkQgj4NLIm5PM=; b=Rcs/Xm032md8dHAbnnVR0FBAfeOoW95+5s1/RzVu0WmkAQR1Z/bMLKiNlsiyiSVH RT01p9YkHw/ur07L7XXM2UkClwnPAP21FiZSEcU/C3X+9F2qrZmsdU4SVkXQMheyujB SVY5+LwSd7UE6YdEMZ+s8PaLJRNhNNCHI6PEHGK8= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org ADDACC43383 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: zhengbin Cc: , , , , , , , Subject: Re: [PATCH -next] brcmfmac: remove set but not used variable 'mpnum','nsp','nmp' References: <1573888967-104078-1-git-send-email-zhengbin13@huawei.com> Date: Wed, 20 Nov 2019 06:34:31 +0000 In-Reply-To: <1573888967-104078-1-git-send-email-zhengbin13@huawei.com> (zhengbin's message of "Sat, 16 Nov 2019 15:22:47 +0800") Message-ID: <0101016e87850355-969ffdac-7a02-4d1e-af93-99e9c27109d6-000000@us-west-2.amazonses.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SES-Outgoing: 2019.11.20-54.240.27.188 Feedback-ID: 1.us-west-2.CZuq2qbDmUIuT3qdvXlRHZZCpfZqZ4GtG9v3VKgRyF0=:AmazonSES Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org zhengbin writes: > 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. No they are not, that commit only moved the driver into a different directory. I'll remove that sentence when I commit this. -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches