From 70ed2c8cbe18f5d43a4138787cc2d7a7eb119500 Mon Sep 17 00:00:00 2001 From: bms Date: Tue, 6 Jul 2004 03:16:55 +0000 Subject: Replace a bzero() after malloc() with M_ZERO. --- sys/net/if_disc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/net/if_disc.c') diff --git a/sys/net/if_disc.c b/sys/net/if_disc.c index aa1c521..6132da9 100644 --- a/sys/net/if_disc.c +++ b/sys/net/if_disc.c @@ -85,8 +85,7 @@ disc_clone_create(struct if_clone *ifc, int unit) struct ifnet *ifp; struct disc_softc *sc; - sc = malloc(sizeof(struct disc_softc), M_DISC, M_WAITOK); - bzero(sc, sizeof(struct disc_softc)); + sc = malloc(sizeof(struct disc_softc), M_DISC, M_WAITOK | M_ZERO); ifp = &sc->sc_if; -- cgit v1.1