NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/53030: src/sys/netinet6/raw_ip6.c:200]: (style) Redundant condition



>Number:         53030
>Category:       kern
>Synopsis:       src/sys/netinet6/raw_ip6.c:200]: (style) Redundant condition
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 14 14:30:01 +0000 2018
>Originator:     David Binderman
>Release:        cvs-20180214
>Organization:
>Environment:
>Description:
src/sys/netinet6/raw_ip6.c:200]: (style) Redundant condition: ipsec_used. '!ipsec_used || (ipsec_used && !ipsec6_in_reject(m,last))' is equivalent to '!ipsec_used || !ipsec6_in_reject(m,last)'

Source code is

            if (!ipsec_used ||
                (ipsec_used && !ipsec6_in_reject(m, last)))



>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index