Author: shurd
Date: Fri May  4 15:11:16 2018
New Revision: 333253
URL: https://svnweb.freebsd.org/changeset/base/333253

Log:
  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 <jacob.e.kel...@intel.com>
  Reviewed by:  gallatin, kmacy, sbruno
  Differential Revision:        https://reviews.freebsd.org/D15284

Modified:
  head/sys/net/iflib.c

Modified: head/sys/net/iflib.c
==============================================================================
--- head/sys/net/iflib.c        Fri May  4 14:49:37 2018        (r333252)
+++ head/sys/net/iflib.c        Fri May  4 15:11:16 2018        (r333253)
@@ -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 @@ err_tx_desc:
                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)
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to