NetBSD-Bugs archive

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

kern/50882: src/sys/dev/ic/bwi.c:3785]: (style) Redundant condition:



>Number:         50882
>Category:       kern
>Synopsis:       src/sys/dev/ic/bwi.c:3785]: (style) Redundant condition:
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 02 18:00:01 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160302
>Organization:
>Environment:
>Description:
src/sys/dev/ic/bwi.c:3785]: (style) Redundant condition: gains!=0. 'gains==0 || (gains!=0 && gains.phy_gain!=-1)' is equivalent to 'gains==0 || gains.phy_gain!=-1'

Source code is

    if (gains == NULL || (gains != NULL && gains->phy_gain != -1)) {

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index