svn commit: r300153 - head/sys/net

Scott Long scottl at FreeBSD.org
Wed May 18 15:44:46 UTC 2016


Author: scottl
Date: Wed May 18 15:44:45 2016
New Revision: 300153
URL: https://svnweb.freebsd.org/changeset/base/300153

Log:
  Remove assertions that don't make sense for the data type.

Modified:
  head/sys/net/iflib.c

Modified: head/sys/net/iflib.c
==============================================================================
--- head/sys/net/iflib.c	Wed May 18 15:25:45 2016	(r300152)
+++ head/sys/net/iflib.c	Wed May 18 15:44:45 2016	(r300153)
@@ -1534,7 +1534,6 @@ _iflib_fl_refill(if_ctx_t ctx, iflib_fl_
 
 	n  = count;
 	MPASS(n > 0);
-	MPASS(fl->ifl_credits >= 0);
 	MPASS(fl->ifl_credits + n <= fl->ifl_size);
 
 	if (pidx < fl->ifl_cidx)
@@ -1663,7 +1662,6 @@ iflib_fl_bufs_free(iflib_fl_t fl)
 	iflib_dma_info_t idi = fl->ifl_ifdi;
 	uint32_t i;
 
-	MPASS(fl->ifl_credits >= 0);
 	for (i = 0; i < fl->ifl_size; i++) {
 		iflib_rxsd_t d = &fl->ifl_sds[i];
 


More information about the svn-src-head mailing list