diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2022-04-06 23:45:28 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2022-04-06 23:45:28 +0000 |
| commit | ee28ad11b7635715ed7d2f5815ace34c433992d1 (patch) | |
| tree | fbacd95bf7618ae4a86aefddfa673d08db59892a /sys/dev/iavf | |
| parent | 46adc7fad3c92bbc3e9eca3b569578bc18dc6e84 (diff) | |
Diffstat (limited to 'sys/dev/iavf')
| -rw-r--r-- | sys/dev/iavf/if_iavf_iflib.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/iavf/if_iavf_iflib.c b/sys/dev/iavf/if_iavf_iflib.c index 7ee43e50a48d..1f6c056bdf0a 100644 --- a/sys/dev/iavf/if_iavf_iflib.c +++ b/sys/dev/iavf/if_iavf_iflib.c @@ -463,13 +463,14 @@ iavf_setup_vc_tq(struct iavf_sc *sc) static int iavf_if_attach_post(if_ctx_t ctx) { - device_t dev; +#ifdef IXL_DEBUG + device_t dev = iflib_get_dev(ctx); +#endif struct iavf_sc *sc; struct iavf_hw *hw; struct iavf_vsi *vsi; int error = 0; - dev = iflib_get_dev(ctx); INIT_DBG_DEV(dev, "begin"); sc = iavf_sc_from_ctx(ctx); @@ -1767,10 +1768,6 @@ iavf_update_link_status(struct iavf_sc *sc) static void iavf_stop(struct iavf_sc *sc) { - struct ifnet *ifp; - - ifp = sc->vsi.ifp; - iavf_clear_state(&sc->state, IAVF_STATE_RUNNING); iavf_disable_intr(&sc->vsi); |
