mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Use M_ZERO instead of bzero().
This commit is contained in:
parent
45329b8ee6
commit
e1a8c3dc33
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131672
@ -143,8 +143,7 @@ gif_clone_create(ifc, unit)
|
||||
{
|
||||
struct gif_softc *sc;
|
||||
|
||||
sc = malloc (sizeof(struct gif_softc), M_GIF, M_WAITOK);
|
||||
bzero(sc, sizeof(struct gif_softc));
|
||||
sc = malloc(sizeof(struct gif_softc), M_GIF, M_WAITOK | M_ZERO);
|
||||
|
||||
sc->gif_if.if_softc = sc;
|
||||
if_initname(&sc->gif_if, ifc->ifc_name, unit);
|
||||
|
Loading…
Reference in New Issue
Block a user