git: c0a1391aa608 - main - ixl: Remove unused variables.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 Apr 2022 23:46:18 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c0a1391aa608d87d4ae5875ef93bf75239a45d3b commit c0a1391aa608d87d4ae5875ef93bf75239a45d3b Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-06 23:45:28 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-06 23:45:28 +0000 ixl: Remove unused variables. --- sys/dev/ixl/ixl_pf_iov.c | 6 ------ sys/dev/ixl/ixl_pf_main.c | 2 -- 2 files changed, 8 deletions(-) diff --git a/sys/dev/ixl/ixl_pf_iov.c b/sys/dev/ixl/ixl_pf_iov.c index c3cf90d1c4b5..bcfe5e8d5290 100644 --- a/sys/dev/ixl/ixl_pf_iov.c +++ b/sys/dev/ixl/ixl_pf_iov.c @@ -126,13 +126,11 @@ ixl_vf_alloc_vsi(struct ixl_pf *pf, struct ixl_vf *vf) { device_t dev; struct i40e_hw *hw; - struct ixl_vsi *vsi; struct i40e_vsi_context vsi_ctx; int i; enum i40e_status_code code; hw = &pf->hw; - vsi = &pf->vsi; dev = pf->dev; vsi_ctx.pf_num = hw->pf_id; @@ -1704,14 +1702,10 @@ ixl_if_iov_uninit(if_ctx_t ctx) { struct ixl_pf *pf = iflib_get_softc(ctx); struct i40e_hw *hw; - struct ixl_vsi *vsi; - struct ifnet *ifp; struct ixl_vf *vfs; int i, num_vfs; hw = &pf->hw; - vsi = &pf->vsi; - ifp = vsi->ifp; for (i = 0; i < pf->num_vfs; i++) { if (pf->vfs[i].vsi.seid != 0) diff --git a/sys/dev/ixl/ixl_pf_main.c b/sys/dev/ixl/ixl_pf_main.c index 896da955843a..8b01ec8a718f 100644 --- a/sys/dev/ixl/ixl_pf_main.c +++ b/sys/dev/ixl/ixl_pf_main.c @@ -2190,14 +2190,12 @@ void ixl_update_vsi_stats(struct ixl_vsi *vsi) { struct ixl_pf *pf; - struct ifnet *ifp; struct i40e_eth_stats *es; u64 tx_discards, csum_errs; struct i40e_hw_port_stats *nsd; pf = vsi->back; - ifp = vsi->ifp; es = &vsi->eth_stats; nsd = &pf->stats;