[Bug 207858] usr/src/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c:289: pointless test ?
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Mar 9 19:41:42 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207858
Bug ID: 207858
Summary: usr/src/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c:289:
pointless test ?
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: freebsd-bugs at FreeBSD.org
Reporter: dcb314 at hotmail.com
usr/src/sys/dev/cxgb/ulp/tom/cxgb_cpl_io.c:289]: (style) Unsigned variable
'tid' can't be negative so it is unnecessary to test it.
Source code is
KASSERT(tid >= 0 && tid < t->ntids,
("%s: tid=%d, ntids=%d", __func__, tid, t->ntids));
but
release_tid(struct toedev *tod, unsigned int tid, int qset)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list