NetBSD-Bugs archive

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

port-ews4800mips/51182: src/sys/arch/ews4800mips/stand/common/cmd.c:102]: (style) Redundant condition



>Number:         51182
>Category:       port-ews4800mips
>Synopsis:       src/sys/arch/ews4800mips/stand/common/cmd.c:102]: (style) Redundant condition
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-ews4800mips-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/ews4800mips/stand/common/cmd.c:102]: (style) Redundant condition: If 'EXPR == 0', the comparison 'EXPR != ' '' is always true.

Source code is

      } else if (sep && (*p != ' ' || *p == '\0')) {

Suggest code rework.
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index