[Bug 200985] sys/dev/hwpmc/hwpmc_piv.c:812: bad assert ?

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jun 20 08:31:29 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200985

            Bug ID: 200985
           Summary: sys/dev/hwpmc/hwpmc_piv.c:812: bad assert ?
           Product: Base System
           Version: 10.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: dcb314 at hotmail.com

sys/dev/hwpmc/hwpmc_piv.c:812]: (warning) Logical disjunction always evaluates
to true: cfgflags >= 0 || cfgflags <= 3

   KASSERT(cfgflags >= 0 || cfgflags <= 3,

Maybe

   KASSERT(cfgflags >= 0 && cfgflags <= 3,

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list