summaryrefslogtreecommitdiffstats
path: root/sys/dev/sk
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-05-31 19:58:45 +0000
committerphk <phk@FreeBSD.org>2003-05-31 19:58:45 +0000
commit5616e3ef83e0c095d11dd0d65c9ad8776ae1c32b (patch)
tree212e4b27c2f61a6defdfeda25d106d7801a2514e /sys/dev/sk
parent7525d5ae8789887dfac0f69fd2ce809daf155f53 (diff)
downloadFreeBSD-src-5616e3ef83e0c095d11dd0d65c9ad8776ae1c32b.zip
FreeBSD-src-5616e3ef83e0c095d11dd0d65c9ad8776ae1c32b.tar.gz
Remove unused variables.
Found by: FlexeLint
Diffstat (limited to 'sys/dev/sk')
-rw-r--r--sys/dev/sk/if_sk.c7
1 files changed, 0 insertions, 7 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);
/*
OpenPOWER on IntegriCloud