Bug 207857 - usr/src/sys/contrib/ncsw/etc/mm.c:328: pointless test ?
Summary: usr/src/sys/contrib/ncsw/etc/mm.c:328: pointless test ?
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-09 19:37 UTC by David Binderman
Modified: 2016-03-09 19:37 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2016-03-09 19:37:10 UTC
usr/src/sys/contrib/ncsw/etc/mm.c:328]: (style) Redundant condition: alignBase<end. 'A || (!A && B)' is equivalent to 'A || B'

Source code is

              if ( alignBase >= end ||
                     (alignBase < end && ((end-alignBase) < alignment)) )