svn commit: r296612 - head/sys/dev/cxgb/ulp/tom

Navdeep Parhar np at FreeBSD.org
Thu Mar 10 14:17:25 UTC 2016


Author: np
Date: Thu Mar 10 14:17:24 2016
New Revision: 296612
URL: https://svnweb.freebsd.org/changeset/base/296612

Log:
  cxgb(4): Remove redundant part of an assertion.
  
  PR:		207858
  Submitted by:	David Binderman

Modified:
  head/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c

Modified: head/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c
==============================================================================
--- head/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c	Thu Mar 10 10:03:28 2016	(r296611)
+++ head/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c	Thu Mar 10 14:17:24 2016	(r296612)
@@ -286,7 +286,7 @@ release_tid(struct toedev *tod, unsigned
 	struct tid_info *t = &td->tid_maps;
 #endif
 
-	KASSERT(tid >= 0 && tid < t->ntids,
+	KASSERT(tid < t->ntids,
 	    ("%s: tid=%d, ntids=%d", __func__, tid, t->ntids));
 
 	m = M_GETHDR_OFLD(qset, CPL_PRIORITY_CONTROL, cpl);


More information about the svn-src-all mailing list