summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/sk/if_sk.c7
-rw-r--r--sys/pci/if_sk.c7
-rw-r--r--sys/pci/if_ste.c4
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;
OpenPOWER on IntegriCloud