Bug 202296

Summary: usr/src/sys/dev/qlxgb/qla_hw.c:800: bad if tests ?
Product: Base System Reporter: David Binderman <dcb314>
Component: miscAssignee: freebsd-bugs mailing list <bugs>
Status: Closed FIXED    
Severity: Affects Some People CC: avos
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description David Binderman 2015-08-13 16:26:56 UTC
[usr/src/sys/dev/qlxgb/qla_hw.c:800]: (warning) Logical disjunction always evaluates to true: EXPR != 8 || EXPR != 10.

Source code is

           if ((*tcp_opt != 0x01) || (*(tcp_opt + 1) != 0x01) ||
                (*(tcp_opt + 2) != 0x08) || (*(tcp_opt + 2) != 10)) {
Comment 1 Andriy Voskoboinyk freebsd_committer 2019-02-07 14:15:33 UTC
Already fixed in base r295822.