From 33735514f9cf04c46b3831db35f87cf694a82ef0 Mon Sep 17 00:00:00 2001 From: knakahara Date: Mon, 31 Jul 2017 06:41:01 +0000 Subject: [PATCH] rename unclear functions. pointed out by msaitoh@n.o. --- sys/dev/pci/if_wm.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/dev/pci/if_wm.c b/sys/dev/pci/if_wm.c index 6310a36d05a9..228e80ca0818 100644 --- a/sys/dev/pci/if_wm.c +++ b/sys/dev/pci/if_wm.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_wm.c,v 1.536 2017/07/28 10:34:58 knakahara Exp $ */ +/* $NetBSD: if_wm.c,v 1.537 2017/07/31 06:41:01 knakahara Exp $ */ /* * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc. @@ -83,7 +83,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.536 2017/07/28 10:34:58 knakahara Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.537 2017/07/31 06:41:01 knakahara Exp $"); #ifdef _KERNEL_OPT #include "opt_net_mpsafe.h" @@ -706,8 +706,8 @@ static int wm_setup_legacy(struct wm_softc *); static int wm_setup_msix(struct wm_softc *); static int wm_init(struct ifnet *); static int wm_init_locked(struct ifnet *); -static void wm_turnon(struct wm_softc *); -static void wm_turnoff(struct wm_softc *); +static void wm_unset_stopping_flags(struct wm_softc *); +static void wm_set_stopping_flags(struct wm_softc *); static void wm_stop(struct ifnet *, int); static void wm_stop_locked(struct ifnet *, int); static void wm_dump_mbuf_chain(struct wm_softc *, struct mbuf *); @@ -5121,7 +5121,7 @@ wm_setup_msix(struct wm_softc *sc) } static void -wm_turnon(struct wm_softc *sc) +wm_unset_stopping_flags(struct wm_softc *sc) { int i; @@ -5147,7 +5147,7 @@ wm_turnon(struct wm_softc *sc) } static void -wm_turnoff(struct wm_softc *sc) +wm_set_stopping_flags(struct wm_softc *sc) { int i; @@ -5812,7 +5812,7 @@ wm_init_locked(struct ifnet *ifp) /* Set the receive filter. */ wm_set_filter(sc); - wm_turnon(sc); + wm_unset_stopping_flags(sc); /* Start the one second link check clock. */ callout_reset(&sc->sc_tick_ch, hz, wm_tick, sc); @@ -5855,7 +5855,7 @@ wm_stop_locked(struct ifnet *ifp, int disable) device_xname(sc->sc_dev), __func__)); KASSERT(WM_CORE_LOCKED(sc)); - wm_turnoff(sc); + wm_set_stopping_flags(sc); /* Stop the one second clock. */ callout_stop(&sc->sc_tick_ch);