Issue #3078 has been reported by dcb.
----------------------------------------
Bug #3078: sys/netinet6/nd6_nbr.c: 2 * redundant condition ?
http://bugs.dragonflybsd.org/issues/3078
* Author: dcb
* Status: New
* Priority: Low
* Assignee:
* Category:
* Target version:
----------------------------------------
dragonfly/sys/netinet6/nd6_nbr.c:290]: (style) Redundant condition:
cmpifp==rtifp. 'cmpifp!=rtifp || (cmpifp==rtifp && (m->m_flags&M_MCAST)==0)' is
equivalent to 'cmpifp!=rtifp || (m->m_flags&M_MCAST)==0'
Source code is
if (rt != NULL &&
(cmpifp != rtifp ||
(cmpifp == rtifp && (m->m_flags & M_MCAST) == 0))
[dragonfly/sys/netinet6/nd6_nbr.c:787]: (style) Redundant condition:
!is_override. 'is_override || (!is_override && lladdr&&!llchange)' is
equivalent to 'is_override || lladdr&&!llchange'
Source code is
} else if (is_override /* (2a) */
|| (!is_override && (lladdr && !llchange)) /* (2b) */
|| !lladdr) { /* (2c) */
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://bugs.dragonflybsd.org/my/account