From 03afde90fdef2d05bb166cbf5f2f07a88a1c045f Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 23 Sep 2004 17:45:18 +0000 Subject: don't need to set ifp->if_mtu or ifp->if_output in each driver, {ether,atm,fddi}_ifattach already does this. ok mcbride@ markus@ henning@ --- sys/dev/pci/if_em.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/dev/pci/if_em.c') diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c index 2404bf569ad..1604cde2d31 100644 --- a/sys/dev/pci/if_em.c +++ b/sys/dev/pci/if_em.c @@ -32,7 +32,7 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ /*$FreeBSD: if_em.c,v 1.38 2004/03/17 17:50:31 njl Exp $*/ -/* $OpenBSD: if_em.c,v 1.27 2004/09/16 09:37:14 mcbride Exp $ */ +/* $OpenBSD: if_em.c,v 1.28 2004/09/23 17:45:16 brad Exp $ */ #include "bpfilter.h" #include "vlan.h" @@ -2183,8 +2183,6 @@ em_setup_interface(struct em_softc * sc) strlcpy(ifp->if_xname, sc->sc_dv.dv_xname, IFNAMSIZ); #endif - ifp->if_mtu = ETHERMTU; - ifp->if_output = ether_output; ifp->if_baudrate = 1000000000; #ifdef __FreeBSD__ ifp->if_init = em_init; -- cgit v1.2.3