NetBSD-Bugs archive

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

kern/51574: src/sys/dev/usb/uhso.c:2167: confusing logic ?



>Number:         51574
>Category:       kern
>Synopsis:       src/sys/dev/usb/uhso.c:2167: confusing logic ?
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 24 16:05:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs-20161024
>Organization:
>Environment:
>Description:
src/sys/dev/usb/uhso.c:2167]: (style) Expression is always false because 'else if' condition matches previous condition at line 2152.

Source code is

        if (got < want) {
            ..
        } else if (want > got) {

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index