NetBSD-Bugs archive

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

port-amiga/51185: src/sys/arch/amiga/stand/binpatch/binpatch.c:406]: (style) Redundant condition



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

src/sys/arch/amiga/stand/binpatch/binpatch.c:406]: (style) Redundant condition: If 'EXPR == ' '', the comparison 'EXPR != 0' is always true.

Source code is

   for (cn=ce + 1;((*cn==' ')&&(*cn!='\0'));cn++)


Suggest code rework.
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index