NetBSD-Bugs archive

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

port-atari/50868: [src/sys/arch/atari/dev/ite.c:804]: (style) Boolean result is used in bitwise operation.



>Number:         50868
>Category:       port-atari
>Synopsis:       [src/sys/arch/atari/dev/ite.c:804]: (style) Boolean result is used in bitwise operation.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-atari-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 29 17:35:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160229
>Organization:
>Environment:
>Description:

Source code is

        if (last_dead == key->mode & KBD_MODE_ACCMASK)

Maybe
        if (last_dead == (key->mode & KBD_MODE_ACCMASK))


>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index