From 60323f48bd6e9e296d9a34e049b550df6ebb040d Mon Sep 17 00:00:00 2001 From: Bruce M Simpson Date: Tue, 6 Jul 2004 03:16:55 +0000 Subject: [PATCH] Replace a bzero() after malloc() with M_ZERO. --- sys/net/if_disc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/net/if_disc.c b/sys/net/if_disc.c index aa1c5217e25a..6132da9ac277 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;