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 Remove unused variables and labels.



details:   https://anonhg.NetBSD.org/src-all/rev/3a35f217f1a6
branches:  trunk
changeset: 370390:3a35f217f1a6
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Thu Sep 24 12:37:37 2020 +1000

description:
Remove unused variables and labels.

diffstat:

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

diffs (28 lines):

diff -r cdf5c22a9e86 -r 3a35f217f1a6 sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c      Thu Sep 24 12:35:38 2020 +1000
+++ b/sys/dev/pci/if_iwm.c      Thu Sep 24 12:37:37 2020 +1000
@@ -6101,7 +6101,6 @@
        struct ieee80211vap *vap = arg;
        struct ieee80211com *ic = vap->iv_ic;
        struct iwm_softc *sc = ic->ic_softc;
-       struct iwm_node *in = (struct iwm_node *)vap->iv_bss;
 #ifndef IEEE80211_NO_HT
        struct ieee80211_node *ni = &in->in_ni;
        int otxrate;
@@ -7068,7 +7067,6 @@
 iwm_ioctl(struct ifnet *ifp, u_long cmd, void *data)
 {
        struct iwm_softc *sc = ifp->if_softc;
-       struct ieee80211com *ic = &sc->sc_ic;
        const struct sockaddr *sa;
        int s, err = 0;
 
@@ -8268,7 +8266,7 @@
 
        return;
 
-fail6: iwm_free_rx_ring(sc, &sc->rxq);
+       iwm_free_rx_ring(sc, &sc->rxq);
 fail5: while (--txq_i >= 0)
                iwm_free_tx_ring(sc, &sc->txq[txq_i]);
 fail4: iwm_dma_contig_free(&sc->sched_dma);



Home | Main Index | Thread Index | Old Index