[Bug 209635] usr/src/sys/arm/xscale/ixp425/ixp425_npe.c:695: pointless test ?
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu May 19 10:49:56 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209635
Bug ID: 209635
Summary: usr/src/sys/arm/xscale/ixp425/ixp425_npe.c:695:
pointless test ?
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: arm
Assignee: freebsd-arm at FreeBSD.org
Reporter: dcb314 at hotmail.com
usr/src/sys/arm/xscale/ixp425/ixp425_npe.c:695]: (style) Unsigned variable
'cNum' can't be negative so it is unnecessary to test it.
Source code is
if (!(0 <= cNum && cNum < IX_NPEDL_CTXT_NUM_MAX)) {
but
uint32_t cNum = (addrInfo & IX_NPEDL_MASK_STATE_ADDR_CTXT_NUM) >>
IX_NPEDL_OFFSET_STATE_ADDR_CTXT_NUM;
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-arm
mailing list