kernel: Remove some unused variables.
authorSascha Wildner <saw@online.de>
Tue, 1 May 2012 09:48:27 +0000 (11:48 +0200)
committerSascha Wildner <saw@online.de>
Tue, 1 May 2012 09:48:50 +0000 (11:48 +0200)
sys/dev/netif/sbsh/if_sbsh.c
sys/dev/netif/ste/if_ste.c
sys/dev/netif/tx/if_tx.c
sys/dev/netif/wpi/if_wpi.c

index 53a9b3c..f891554 100644 (file)
@@ -845,7 +845,6 @@ static void
 cx28975_interrupt(struct sbsh_softc *sc)
 {
        volatile struct cx28975_cmdarea  *p = sc->cmdp;
-       u_int8_t  t;
 
        if (p->intr_host != 0xfe)
                return;
@@ -864,13 +863,11 @@ cx28975_interrupt(struct sbsh_softc *sc)
                }
 
                p->intr_host = 0;
-               t = p->intr_host;
                p->out_ack = 0;
        } else {
                wakeup(sc);
 
                p->intr_host = 0;
-               t = p->intr_host;
        }
 }
 
index 12a3d9b..040cbfa 100644 (file)
@@ -1122,11 +1122,9 @@ ste_init(void *xsc)
        struct ste_softc        *sc;
        int                     i;
        struct ifnet            *ifp;
-       struct mii_data         *mii;
 
        sc = xsc;
        ifp = &sc->arpcom.ac_if;
-       mii = device_get_softc(sc->ste_miibus);
 
        ste_stop(sc);
 
index 237cc13..a1c7690 100644 (file)
@@ -943,11 +943,9 @@ epic_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr)
 {
        epic_softc_t *sc;
        struct mii_data *mii;
-       struct ifmedia *ifm;
 
        sc = ifp->if_softc;
        mii = device_get_softc(sc->miibus);
-       ifm = &mii->mii_media;
 
        /* Nothing should be selected if interface is down */
        if ((ifp->if_flags & IFF_UP) == 0) {
index 0f6a765..686a510 100644 (file)
@@ -481,9 +481,6 @@ fail:
 static void
 wpi_unload_firmware(struct wpi_softc *sc)
 {
-       struct ifnet *ifp;
-       ifp = sc->sc_ifp;
-
        if (sc->fw_fp) {
                wlan_assert_serialized();
                wlan_serialize_exit();