NetBSD-Bugs archive

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

port-x68k/51194: src/sys/arch/x68k/stand/libsa/parseutils.c:67]: (style) Redundant condition



>Number:         51194
>Category:       port-x68k
>Synopsis:       src/sys/arch/x68k/stand/libsa/parseutils.c:67]: (style) Redundant condition
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-x68k-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 30 13:20:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160529
>Organization:
>Environment:
>Description:
src/sys/arch/x68k/stand/libsa/parseutils.c:67]: (style) Redundant condition: If 'EXPR == ' '', the comparison 'EXPR' is always true.


Source code is

    while (*options && *options == ' ')


Suggest new code

    while (*options == ' ')

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index