[Bug 200986] sys/dev/isci/scil/scif_sas_controller.c:531: bad if ?

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


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

            Bug ID: 200986
           Summary: sys/dev/isci/scil/scif_sas_controller.c:531: bad if ?
           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/isci/scil/scif_sas_controller.c:531]: (warning) Logical conjunction
always evaluates to false: EXPR < 1 && EXPR > 32.

 if (scif_parms->sas.max_ncq_depth < 1 && scif_parms->sas.max_ncq_depth > 32)

Maybe

 if (scif_parms->sas.max_ncq_depth < 1 || scif_parms->sas.max_ncq_depth > 32)

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


More information about the freebsd-bugs mailing list