NetBSD-Bugs archive

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

port-arm/50881: src/sys/arch/arm/arm/bootconfig.c:91]: (style) Redundant condition:



>Number:         50881
>Category:       port-arm
>Synopsis:       src/sys/arch/arm/arm/bootconfig.c:91]: (style) Redundant condition:
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 02 18:00:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160302
>Organization:
>Environment:
>Description:
[src/sys/arch/arm/arm/bootconfig.c:91]: (style) Redundant condition: *ptr!='='. 'A || (!A && B)' is equivalent to 'A || B'

Source code is

        if (*ptr == '=' ||
            (*ptr != '=' &&
             ((type & BOOTOPT_TYPE_MASK) == BOOTOPT_TYPE_BOOLEAN))) {

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index