NetBSD-Bugs archive

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

kern/51921: src/sys/arch/arm/arm/cpufunc.c:3079: possible typo ?



>Number:         51921
>Category:       kern
>Synopsis:       src/sys/arch/arm/arm/cpufunc.c:3079: possible typo ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 28 11:30:01 +0000 2017
>Originator:     David Binderman
>Release:        cvs-20170128
>Organization:
>Environment:
>Description:
src/sys/arch/arm/arm/cpufunc.c:3079]: (style) Condition '1<22' is always true

Source code is

    cpuctrl |= (0x5 << 16) | (1 < 22);

But maybe this code was intended:

    cpuctrl |= (0x5 << 16) | (1 << 22);

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index