Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Mar 2016 14:17:24 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r296612 - head/sys/dev/cxgb/ulp/tom
Message-ID:  <201603101417.u2AEHOu8077062@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603101417.u2AEHOu8077062>