Remove unused variables.

Found by:       FlexeLint
This commit is contained in:
Poul-Henning Kamp 2003-05-31 19:58:45 +00:00
parent 1000b87f2a
commit 9c96882e80
3 changed files with 0 additions and 18 deletions

View File

@ -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);
/*

View File

@ -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);
/*

View File

@ -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 @@ ste_encap(sc, c, m_head)
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;