NetBSD-Bugs archive

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

port-ia64/51183: src/sys/arch/ia64/stand/common/boot.c:321]: (style) Redundant condition



>Number:         51183
>Category:       port-ia64
>Synopsis:       src/sys/arch/ia64/stand/common/boot.c:321]: (style) Redundant condition
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-ia64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 29 17:20:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160529
>Organization:
>Environment:
>Description:

src/sys/arch/ia64/stand/common/boot.c:321]: (style) Redundant condition: If 'EXPR == 0', the comparison 'EXPR != '/'' is always true.

Source code is

     if ((*cp == 0) || (*cp != '/') || !isspace(*(cp + 1)))


Suggest code rework.
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index