NetBSD-Bugs archive

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

kern/51434: src/sys/netinet6/icmp6.c:1536: redundant condition ?



>Number:         51434
>Category:       kern
>Synopsis:       src/sys/netinet6/icmp6.c:1536: redundant condition ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 21 20:10:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160821
>Organization:
>Environment:
>Description:
src/sys/netinet6/icmp6.c:1536]: (style) Redundant condition: If 'EXPR == '.'', the comparison 'EXPR' is always true.

Source code is

            if (*p && *p == '.')
                i++;

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index