diff options
author | bms <bms@FreeBSD.org> | 2004-07-06 03:16:55 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2004-07-06 03:16:55 +0000 |
commit | 70ed2c8cbe18f5d43a4138787cc2d7a7eb119500 (patch) | |
tree | f1f5009438e2dc5bbdec84c43e9211a208c48884 /sys/net | |
parent | 17a9559973d58abadcd3821bc443d19ff9d5ebbb (diff) | |
download | FreeBSD-src-70ed2c8cbe18f5d43a4138787cc2d7a7eb119500.zip FreeBSD-src-70ed2c8cbe18f5d43a4138787cc2d7a7eb119500.tar.gz |
Replace a bzero() after malloc() with M_ZERO.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_disc.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |