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/260b599ce163
branches:  trunk
changeset: 375769:260b599ce163
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 dde9ee3a6f9a -r 260b599ce163 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 @@ static int ipw_raw_xmit(struct ieee80211
                    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);
@@ -1712,6 +1714,7 @@ ipw_watchdog(struct ifnet *ifp)
 //     ieee80211_watchdog(&sc->sc_ic);
 }
 
+#if 0
 static int
 ipw_get_table1(struct ipw_softc *sc, uint32_t *tbl)
 {
@@ -1755,7 +1758,6 @@ ipw_get_radio(struct ipw_softc *sc, int 
        return copyout(&data, ret, sizeof(data));
 }
 
-#if 0
 static int
 ipw_ioctl(struct ifnet *ifp, u_long cmd, void *data)
 {
@@ -2116,7 +2118,7 @@ ipw_config(struct ipw_softc *sc)
        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:
@@ -2398,7 +2400,6 @@ fail:
 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