Source-Changes-HG archive

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

[src-draft/trunk]: src/sys/dev/pci Handle unused variables and functions.



details:   https://anonhg.NetBSD.org/src-all/rev/af7a4940d8d1
branches:  trunk
changeset: 364348:af7a4940d8d1
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Tue Mar 08 04:29:50 2022 +1100

description:
Handle unused variables and functions.

diffstat:

 sys/dev/pci/if_ipw.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (47 lines):

diff -r 1cfdf487043f -r af7a4940d8d1 sys/dev/pci/if_ipw.c
--- a/sys/dev/pci/if_ipw.c      Tue Mar 08 04:26:24 2022 +1100
+++ b/sys/dev/pci/if_ipw.c      Tue Mar 08 04:29:50 2022 +1100
@@ -115,8 +115,10 @@
                    const struct ieee80211_bpf_params *);
 static void    ipw_start(struct ipw_softc *);
 static void    ipw_watchdog(struct ifnet *);
+#if 0
 static int     ipw_get_table1(struct ipw_softc *, uint32_t *);
 static int     ipw_get_radio(struct ipw_softc *, int *);
+#endif
 static void    ipw_stop_master(struct ipw_softc *);
 static int     ipw_reset(struct ipw_softc *);
 static int     ipw_load_ucode(struct ipw_softc *, u_char *, int);
@@ -1713,6 +1715,7 @@
 //     ieee80211_watchdog(&sc->sc_ic);
 }
 
+#if 0
 static int
 ipw_get_table1(struct ipw_softc *sc, uint32_t *tbl)
 {
@@ -1756,7 +1759,6 @@
        return copyout(&data, ret, sizeof(data));
 }
 
-#if 0
 static int
 ipw_ioctl(struct ifnet *ifp, u_long cmd, void *data)
 {
@@ -2117,7 +2119,7 @@
        struct ipw_scan_options options;
        struct ipw_configuration config;
        uint32_t data;
-       int error, i;
+       int error;
 
        switch (ic->ic_opmode) {
        case IEEE80211_M_STA:
@@ -2399,7 +2401,6 @@
 static void
 ipw_stop(struct ipw_softc *sc, int disable)
 {
-       struct ieee80211com *ic = &sc->sc_ic;
        int i;
 
        ipw_stop_master(sc);



Home | Main Index | Thread Index | Old Index