diff options
author | YueHaibing <yuehaibing@huawei.com> | 2020-01-10 06:09:08 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-10 23:15:28 -0800 |
commit | 6821af8b7885870ed0dcb299e4b3cd38695538bc (patch) | |
tree | 9ac30dc1ee4c9103f184d1a312e86e83dca22eba /drivers | |
parent | de4ff8341f59d9893b9c1bd3b26d2f6c9d9a2dd2 (diff) |
sfc: remove set but not used variable 'nic_data'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/net/ethernet/sfc/mcdi_functions.c: In function 'efx_mcdi_ev_init':
drivers/net/ethernet/sfc/mcdi_functions.c:79:28: warning:
variable 'nic_data' set but not used [-Wunused-but-set-variable]
commit 4438b587fe4b ("sfc: move MCDI event queue management code")
introduces this unused variable.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/sfc/mcdi_functions.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/sfc/mcdi_functions.c b/drivers/net/ethernet/sfc/mcdi_functions.c index f5dad8bffc3d..dcfe78b0fa5a 100644 --- a/drivers/net/ethernet/sfc/mcdi_functions.c +++ b/drivers/net/ethernet/sfc/mcdi_functions.c @@ -76,13 +76,10 @@ int efx_mcdi_ev_init(struct efx_channel *channel, bool v1_cut_thru, bool v2) MCDI_DECLARE_BUF(outbuf, MC_CMD_INIT_EVQ_V2_OUT_LEN); size_t entries = channel->eventq.buf.len / EFX_BUF_SIZE; struct efx_nic *efx = channel->efx; - struct efx_ef10_nic_data *nic_data; size_t inlen, outlen; dma_addr_t dma_addr; int rc, i; - nic_data = efx->nic_data; - /* Fill event queue with all ones (i.e. empty events) */ memset(channel->eventq.buf.addr, 0xff, channel->eventq.buf.len); |