NetBSD Problem Report #50689

From www@NetBSD.org  Thu Jan 21 18:02:19 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.NetBSD.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A1FB37ACC8
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 21 Jan 2016 18:02:19 +0000 (UTC)
Message-Id: <20160121180218.8BAB47ACC8@mollari.NetBSD.org>
Date: Thu, 21 Jan 2016 18:02:18 +0000 (UTC)
From: dcb314@hotmail.com
Reply-To: dcb314@hotmail.com
To: gnats-bugs@NetBSD.org
Subject: src/sys/dev/cadence/if_cemac.c:983: possible bad bitmask ?
X-Send-Pr-Version: www-1.0

>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:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.