NetBSD-Bugs archive

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

port-hpcmips/50688: src/sys/arch/hpcmips/dev/plumpower.c:119: possible bad bitmask ?



>Number:         50688
>Category:       port-hpcmips
>Synopsis:       src/sys/arch/hpcmips/dev/plumpower.c:119: possible bad bitmask ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-hpcmips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 21 17:45:01 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160121
>Organization:
>Environment:
>Description:
[src/sys/arch/hpcmips/dev/plumpower.c:119] -> [src/sys/arch/hpcmips/dev/plumpower.c:119]: (style) Same expression on both sides of '|'.

Source code is

       plum_conf_write(regt, regh, PLUM_POWER_RESETC_REG,
        PLUM_POWER_RESETC_IO5CL1 |
        PLUM_POWER_RESETC_IO5CL1);

At a simple level, it might be suitable to remove the duplicate.

Or maybe there is a simple typo:

$ fgrep PLUM_POWER_RESETC_IO5CL src/sys/arch/hpcmips/dev/*.h
src/sys/arch/hpcmips/dev/plumpowerreg.h:#define PLUM_POWER_RESETC_IO5CL1	0x00000002
src/sys/arch/hpcmips/dev/plumpowerreg.h:#define PLUM_POWER_RESETC_IO5CL0	0x00000001
$ 


>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index