Remove an unnecessary check that yields a spurious EINVAL during
initialization.
This commit is contained in:
parent
69b443d18c
commit
654775cc67
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: hme.c,v 1.61 2008/01/19 22:10:16 dyoung Exp $ */
|
||||
/* $NetBSD: hme.c,v 1.62 2008/01/21 11:32:12 dyoung Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
|
@ -41,7 +41,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: hme.c,v 1.61 2008/01/19 22:10:16 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: hme.c,v 1.62 2008/01/21 11:32:12 dyoung Exp $");
|
||||
|
||||
/* #define HMEDEBUG */
|
||||
|
||||
|
@ -1384,8 +1384,6 @@ hme_mediachange(ifp)
|
|||
if (sc->sc_debug)
|
||||
printf("hme_mediachange: phy = %d\n", phy);
|
||||
#endif
|
||||
if (IFM_TYPE(sc->sc_mii.mii_media.ifm_media) != IFM_ETHER)
|
||||
return (EINVAL);
|
||||
|
||||
/* Select the current PHY in the MIF configuration register */
|
||||
v = bus_space_read_4(t, mif, HME_MIFI_CFG);
|
||||
|
|
Loading…
Reference in New Issue