NetBSD-Bugs archive

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

kern/50689: src/sys/dev/cadence/if_cemac.c:983: possible bad bitmask ?



>Number:         50689
>Category:       kern
>Synopsis:       src/sys/dev/cadence/if_cemac.c:983: possible bad bitmask ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 21 18:05:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160121
>Organization:
>Environment:
>Description:
[src/sys/dev/cadence/if_cemac.c:983] -> [src/sys/dev/cadence/if_cemac.c:983]: (style) Same expression on both sides of '|'.


Source code is

   cfg &= ~(ETH_CFG_MTI | ETH_CFG_UNI | ETH_CFG_CAF | ETH_CFG_UNI);

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

Or maybe there is a simple typo for some other bitmask value.
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index