Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci remove unnecessary code because IFM_ACTIVE is se...



details:   https://anonhg.NetBSD.org/src/rev/662e206d38b8
branches:  trunk
changeset: 1008118:662e206d38b8
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Thu Mar 12 09:34:41 2020 +0000

description:
remove unnecessary code because IFM_ACTIVE is setted
in ixl_set_link_status()

OKed by knakahara@n.o

diffstat:

 sys/dev/pci/if_ixl.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (30 lines):

diff -r 0373ac24dc93 -r 662e206d38b8 sys/dev/pci/if_ixl.c
--- a/sys/dev/pci/if_ixl.c      Thu Mar 12 03:01:46 2020 +0000
+++ b/sys/dev/pci/if_ixl.c      Thu Mar 12 09:34:41 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ixl.c,v 1.60 2020/03/03 04:55:46 yamaguchi Exp $    */
+/*     $NetBSD: if_ixl.c,v 1.61 2020/03/12 09:34:41 yamaguchi Exp $    */
 
 /*
  * Copyright (c) 2013-2015, Intel Corporation
@@ -74,7 +74,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ixl.c,v 1.60 2020/03/03 04:55:46 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ixl.c,v 1.61 2020/03/12 09:34:41 yamaguchi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -1688,11 +1688,6 @@
 
        ifmr->ifm_status = sc->sc_media_status;
        ifmr->ifm_active = sc->sc_media_active;
-
-       mutex_enter(&sc->sc_cfg_lock);
-       if (ifp->if_link_state == LINK_STATE_UP)
-               SET(ifmr->ifm_status, IFM_ACTIVE);
-       mutex_exit(&sc->sc_cfg_lock);
 }
 
 static int



Home | Main Index | Thread Index | Old Index