-/* $OpenBSD: if_axen.c,v 1.10 2015/01/12 18:18:42 stsp Exp $ */
+/* $OpenBSD: if_axen.c,v 1.11 2015/01/22 10:23:47 mpi Exp $ */
/*
* Copyright (c) 2013 Yojiro UO <yuo@openbsd.org>
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;
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))
{
int s;
struct axen_softc *sc;
- struct ifnet *ifp;
struct mii_data *mii;
sc = xsc;
if (usbd_is_dying(sc->axen_udev))
return;
- ifp = GET_IFP(sc);
mii = GET_MII(sc);
if (mii == NULL)
return;