Bug 207859 - usr/src/sys/dev/bhnd/bhndb/bhndb.c:1061: pointless test ?
Summary: usr/src/sys/dev/bhnd/bhndb/bhndb.c:1061: pointless test ?
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
Depends on:
Reported: 2016-03-09 19:45 UTC by David Binderman
Modified: 2016-03-09 19:45 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2016-03-09 19:45:21 UTC
usr/src/sys/dev/bhnd/bhndb/bhndb.c:1061] -> [usr/src/sys/dev/bhnd/bhndb/bhndb.c:1061]: (style) Same expression on both sides of '||'.

Source code is

   if (start > end || end < start || count > ((end - start) + 1))
        return (NULL);

Suggest remove pointless test.