Bug 202296 - usr/src/sys/dev/qlxgb/qla_hw.c:800: bad if tests ?
Summary: usr/src/sys/dev/qlxgb/qla_hw.c:800: bad if tests ?
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-13 16:26 UTC by David Binderman
Modified: 2019-02-07 14:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.