From 83da3b83e57380a4ca98b5dd137731364bf365d1 Mon Sep 17 00:00:00 2001 From: shurd Date: Fri, 4 May 2018 15:11:16 +0000 Subject: [PATCH] iflib: remove unused brscp pointer from iflib_queues_alloc This pointer was no longer written to as of r315217. Since nothing writes to the variable, remove it. Submitted by: Jacob Keller Reviewed by: gallatin, kmacy, sbruno Differential Revision: https://reviews.freebsd.org/D15284 --- sys/net/iflib.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/net/iflib.c b/sys/net/iflib.c index fa247a27673b..1d2b7eb80354 100644 --- a/sys/net/iflib.c +++ b/sys/net/iflib.c @@ -4773,12 +4773,10 @@ iflib_queues_alloc(if_ctx_t ctx) int nfree_lists = sctx->isc_nfl ? sctx->isc_nfl : 1; caddr_t *vaddrs; uint64_t *paddrs; - struct ifmp_ring **brscp; KASSERT(ntxqs > 0, ("number of queues per qset must be at least 1")); KASSERT(nrxqs > 0, ("number of queues per qset must be at least 1")); - brscp = NULL; txq = NULL; rxq = NULL; @@ -4966,8 +4964,6 @@ iflib_queues_alloc(if_ctx_t ctx) free(ctx->ifc_txqs, M_IFLIB); ctx->ifc_txqs = NULL; rx_fail: - if (brscp != NULL) - free(brscp, M_IFLIB); if (rxq != NULL) free(rxq, M_IFLIB); if (txq != NULL)