summaryrefslogtreecommitdiffstats
path: root/sys/net/if_disc.c
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2004-07-06 03:16:55 +0000
committerbms <bms@FreeBSD.org>2004-07-06 03:16:55 +0000
commit70ed2c8cbe18f5d43a4138787cc2d7a7eb119500 (patch)
treef1f5009438e2dc5bbdec84c43e9211a208c48884 /sys/net/if_disc.c
parent17a9559973d58abadcd3821bc443d19ff9d5ebbb (diff)
downloadFreeBSD-src-70ed2c8cbe18f5d43a4138787cc2d7a7eb119500.zip
FreeBSD-src-70ed2c8cbe18f5d43a4138787cc2d7a7eb119500.tar.gz
Replace a bzero() after malloc() with M_ZERO.
Diffstat (limited to 'sys/net/if_disc.c')
-rw-r--r--sys/net/if_disc.c3
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;
OpenPOWER on IntegriCloud