From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] qlcnic: Remove set but not used variables 'fw_mbx' and 'hdr_size' Date: Wed, 12 Sep 2018 20:33:56 -0700 (PDT) Message-ID: <20180912.203356.1125227812671410666.davem@davemloft.net> References: <1536666689-3906-1-git-send-email-yuehaibing@huawei.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: harish.patil@cavium.com, manish.chopra@cavium.com, Dept-GELinuxNICDev@cavium.com, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org To: yuehaibing@huawei.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:42344 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726080AbeIMIl3 (ORCPT ); Thu, 13 Sep 2018 04:41:29 -0400 In-Reply-To: <1536666689-3906-1-git-send-email-yuehaibing@huawei.com> Sender: netdev-owner@vger.kernel.org List-ID: From: YueHaibing Date: Tue, 11 Sep 2018 11:51:29 +0000 > From: Yue Haibing > > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c: In function 'qlcnic_sriov_pull_bc_msg': > drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c:907:6: warning: > variable 'fw_mbx' set but not used [-Wunused-but-set-variable] > > drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c: In function 'qlcnic_sriov_issue_bc_post': > drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c:939:16: warning: > variable 'hdr_size' set but not used [-Wunused-but-set-variable] > > Signed-off-by: Yue Haibing Applied, thanks.