Hi,

1) axen_cmd() returns int instead of usbd_status.
2) the ifp variable in axen_tick_task() is not used so delete it.

Cheers,
Fabian


Index: if_axen.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/if_axen.c,v
retrieving revision 1.10
diff -u -p -r1.10 if_axen.c
--- if_axen.c   12 Jan 2015 18:18:42 -0000      1.10
+++ if_axen.c   15 Jan 2015 14:02:56 -0000
@@ -176,7 +176,7 @@ int
 axen_miibus_readreg(struct device *dev, int phy, int reg)
 {
        struct axen_softc       *sc = (void *)dev;
-       usbd_status             err;
+       int                     err;
        uWord                   val;
        int                     ival;
 
@@ -212,7 +212,7 @@ void
 axen_miibus_writereg(struct device *dev, int phy, int reg, int val)
 {
        struct axen_softc       *sc = (void *)dev;
-       usbd_status             err;
+       int                     err;
        uWord                   uval;
 
        if (usbd_is_dying(sc->axen_udev))
@@ -1184,7 +1184,6 @@ axen_tick_task(void *xsc)
 {
        int                     s;
        struct axen_softc       *sc;
-       struct ifnet            *ifp;
        struct mii_data         *mii;
 
        sc = xsc;
@@ -1195,7 +1194,6 @@ axen_tick_task(void *xsc)
        if (usbd_is_dying(sc->axen_udev))
                return;
 
-       ifp = GET_IFP(sc);
        mii = GET_MII(sc);
        if (mii == NULL)
                return;

Reply via email to