diff options
author | bms <bms@FreeBSD.org> | 2004-07-06 03:34:16 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2004-07-06 03:34:16 +0000 |
commit | 59286e68a51ef19b0da3b461abefb58992d7fd82 (patch) | |
tree | ef63230604930323c52845d5a6187792890caaa8 /sys/net | |
parent | fc4a5b9cafb55fb5ba09a9405d30e4b28108061f (diff) | |
download | FreeBSD-src-59286e68a51ef19b0da3b461abefb58992d7fd82.zip FreeBSD-src-59286e68a51ef19b0da3b461abefb58992d7fd82.tar.gz |
Use M_ZERO instead of bzero().
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_faith.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_faith.c b/sys/net/if_faith.c index 76d7546..c8da1cd 100644 --- a/sys/net/if_faith.c +++ b/sys/net/if_faith.c @@ -165,8 +165,7 @@ faith_clone_create(ifc, unit) { struct faith_softc *sc; - sc = malloc(sizeof(struct faith_softc), M_FAITH, M_WAITOK); - bzero(sc, sizeof(struct faith_softc)); + sc = malloc(sizeof(struct faith_softc), M_FAITH, M_WAITOK | M_ZERO); sc->sc_if.if_softc = sc; if_initname(&sc->sc_if, ifc->ifc_name, unit); |