diff options
author | phk <phk@FreeBSD.org> | 2003-05-31 19:58:45 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-05-31 19:58:45 +0000 |
commit | 5616e3ef83e0c095d11dd0d65c9ad8776ae1c32b (patch) | |
tree | 212e4b27c2f61a6defdfeda25d106d7801a2514e | |
parent | 7525d5ae8789887dfac0f69fd2ce809daf155f53 (diff) | |
download | FreeBSD-src-5616e3ef83e0c095d11dd0d65c9ad8776ae1c32b.zip FreeBSD-src-5616e3ef83e0c095d11dd0d65c9ad8776ae1c32b.tar.gz |
Remove unused variables.
Found by: FlexeLint
-rw-r--r-- | sys/dev/sk/if_sk.c | 7 | ||||
-rw-r--r-- | sys/pci/if_sk.c | 7 | ||||
-rw-r--r-- | sys/pci/if_ste.c | 4 |
3 files changed, 0 insertions, 18 deletions
diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c index 7e4e423..0ffbae1 100644 --- a/sys/dev/sk/if_sk.c +++ b/sys/dev/sk/if_sk.c @@ -1363,11 +1363,9 @@ static int sk_detach_xmac(dev) device_t dev; { - struct sk_softc *sc; struct sk_if_softc *sc_if; struct ifnet *ifp; - sc = device_get_softc(device_get_parent(dev)); sc_if = device_get_softc(dev); KASSERT(mtx_initialized(&sc_if->sk_softc->sk_mtx), ("sk mutex not initialized in sk_detach_xmac")); @@ -1720,12 +1718,9 @@ static void sk_intr_bcom(sc_if) struct sk_if_softc *sc_if; { - struct sk_softc *sc; struct mii_data *mii; struct ifnet *ifp; int status; - - sc = sc_if->sk_softc; mii = device_get_softc(sc_if->sk_miibus); ifp = &sc_if->arpcom.ac_if; @@ -1780,10 +1775,8 @@ sk_intr_xmac(sc_if) { struct sk_softc *sc; u_int16_t status; - struct mii_data *mii; sc = sc_if->sk_softc; - mii = device_get_softc(sc_if->sk_miibus); status = SK_XM_READ_2(sc_if, XM_ISR); /* diff --git a/sys/pci/if_sk.c b/sys/pci/if_sk.c index 7e4e423..0ffbae1 100644 --- a/sys/pci/if_sk.c +++ b/sys/pci/if_sk.c @@ -1363,11 +1363,9 @@ static int sk_detach_xmac(dev) device_t dev; { - struct sk_softc *sc; struct sk_if_softc *sc_if; struct ifnet *ifp; - sc = device_get_softc(device_get_parent(dev)); sc_if = device_get_softc(dev); KASSERT(mtx_initialized(&sc_if->sk_softc->sk_mtx), ("sk mutex not initialized in sk_detach_xmac")); @@ -1720,12 +1718,9 @@ static void sk_intr_bcom(sc_if) struct sk_if_softc *sc_if; { - struct sk_softc *sc; struct mii_data *mii; struct ifnet *ifp; int status; - - sc = sc_if->sk_softc; mii = device_get_softc(sc_if->sk_miibus); ifp = &sc_if->arpcom.ac_if; @@ -1780,10 +1775,8 @@ sk_intr_xmac(sc_if) { struct sk_softc *sc; u_int16_t status; - struct mii_data *mii; sc = sc_if->sk_softc; - mii = device_get_softc(sc_if->sk_miibus); status = SK_XM_READ_2(sc_if, XM_ISR); /* diff --git a/sys/pci/if_ste.c b/sys/pci/if_ste.c index 1377c45..94efbef 100644 --- a/sys/pci/if_ste.c +++ b/sys/pci/if_ste.c @@ -1226,12 +1226,10 @@ ste_init(xsc) struct ste_softc *sc; int i; struct ifnet *ifp; - struct mii_data *mii; sc = xsc; STE_LOCK(sc); ifp = &sc->arpcom.ac_if; - mii = device_get_softc(sc->ste_miibus); ste_stop(sc); @@ -1475,7 +1473,6 @@ ste_encap(sc, c, m_head) struct ste_frag *f = NULL; struct mbuf *m; struct ste_desc *d; - int total_len = 0; d = c->ste_ptr; d->ste_ctl = 0; @@ -1485,7 +1482,6 @@ encap_retry: if (m->m_len != 0) { if (frag == STE_MAXFRAGS) break; - total_len += m->m_len; f = &d->ste_frags[frag]; f->ste_addr = vtophys(mtod(m, vm_offset_t)); f->ste_len = m->m_len; |