aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/le/lance.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/le/lance.c')
-rw-r--r--sys/dev/le/lance.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/le/lance.c b/sys/dev/le/lance.c
index 74ae09ee14c3..f5e41e82bb42 100644
--- a/sys/dev/le/lance.c
+++ b/sys/dev/le/lance.c
@@ -107,8 +107,6 @@ lance_config(struct lance_softc *sc, const char* name, int unit)
return (ENXIO);
ifp = sc->sc_ifp = if_alloc(IFT_ETHER);
- if (ifp == NULL)
- return (ENOSPC);
callout_init_mtx(&sc->sc_wdog_ch, &sc->sc_mtx, 0);
@@ -195,7 +193,8 @@ lance_attach(struct lance_softc *sc)
if_setcapabilitiesbit(ifp, IFCAP_VLAN_MTU, 0);
if_setcapenablebit(ifp, IFCAP_VLAN_MTU, 0);
- gone_in(15, "le: 10/100 NIC no longer needed for Qemu/MIPS");
+ gone_in(15, "Warning! le(4) to be removed: no longer needed for "
+ "Qemu/MIPS\n");
}
void