Replace a bzero() after malloc() with M_ZERO.
This commit is contained in:
parent
832cb4aef7
commit
60323f48bd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131670
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user