Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii Simplify. No functional change.



details:   https://anonhg.NetBSD.org/src/rev/fdf7289098bd
branches:  trunk
changeset: 998235:fdf7289098bd
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Apr 11 09:00:34 2019 +0000

description:
Simplify. No functional change.

diffstat:

 sys/dev/mii/atphy.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0618ae993409 -r fdf7289098bd sys/dev/mii/atphy.c
--- a/sys/dev/mii/atphy.c       Thu Apr 11 08:50:59 2019 +0000
+++ b/sys/dev/mii/atphy.c       Thu Apr 11 09:00:34 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atphy.c,v 1.21 2019/03/25 09:20:46 msaitoh Exp $ */
+/*     $NetBSD: atphy.c,v 1.22 2019/04/11 09:00:34 msaitoh Exp $ */
 /*     $OpenBSD: atphy.c,v 1.1 2008/09/25 20:47:16 brad Exp $  */
 
 /*-
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atphy.c,v 1.21 2019/03/25 09:20:46 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atphy.c,v 1.22 2019/04/11 09:00:34 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -223,7 +223,7 @@
                }
 
                anar = mii_anar(IFM_SUBTYPE(ife->ifm_media));
-               if (((ife->ifm_media & IFM_GMASK) & IFM_FDX) != 0) {
+               if ((ife->ifm_media & IFM_FDX) != 0) {
                        bmcr |= BMCR_FDX;
                        /* Enable pause. */
                        if (sc->mii_flags & MIIF_DOPAUSE)



Home | Main Index | Thread Index | Old Index