Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/at91 Remove unnecessary duplicate bit define in...



details:   https://anonhg.NetBSD.org/src/rev/7af6e6619fcb
branches:  trunk
changeset: 1024775:7af6e6619fcb
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Nov 04 06:57:51 2021 +0000

description:
Remove unnecessary duplicate bit define in mask

PR port-arm/50687

diffstat:

 sys/arch/arm/at91/at91emac.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r cb16f7ac7604 -r 7af6e6619fcb sys/arch/arm/at91/at91emac.c
--- a/sys/arch/arm/at91/at91emac.c      Thu Nov 04 00:13:57 2021 +0000
+++ b/sys/arch/arm/at91/at91emac.c      Thu Nov 04 06:57:51 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: at91emac.c,v 1.32 2020/02/19 02:51:54 thorpej Exp $    */
+/*     $NetBSD: at91emac.c,v 1.33 2021/11/04 06:57:51 skrll Exp $      */
 
 /*
  * Copyright (c) 2007 Embedtronics Oy
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: at91emac.c,v 1.32 2020/02/19 02:51:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: at91emac.c,v 1.33 2021/11/04 06:57:51 skrll Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -774,7 +774,7 @@
        /* disable receiver temporarily */
        EMAC_WRITE(ETH_CTL, ctl & ~ETH_CTL_RE);
 
-       cfg &= ~(ETH_CFG_MTI | ETH_CFG_UNI | ETH_CFG_CAF | ETH_CFG_UNI);
+       cfg &= ~(ETH_CFG_MTI | ETH_CFG_UNI | ETH_CFG_CAF);
 
        if (ifp->if_flags & IFF_PROMISC) {
                cfg |=  ETH_CFG_CAF;



Home | Main Index | Thread Index | Old Index