NetBSD-Bugs archive

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

port-zaurus/51196: src/sys/arch/zaurus/zaurus/machdep.c:1208]: (style) Redundant condition



>Number:         51196
>Category:       port-zaurus
>Synopsis:       src/sys/arch/zaurus/zaurus/machdep.c:1208]: (style) Redundant condition
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-zaurus-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 30 13:25:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160529
>Organization:
>Environment:
>Description:

src/sys/arch/zaurus/zaurus/machdep.c:1208]: (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