summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2004-07-06 03:28:24 +0000
committerbms <bms@FreeBSD.org>2004-07-06 03:28:24 +0000
commit42f466846a0929ce522ceac4d8ed4f4dbf0c314f (patch)
treee3240eceba1bcae867a4a576df4b61ea24ddf003 /sys
parentaf7a12986103cde3ca1884cd9e6b8a35a097c963 (diff)
downloadFreeBSD-src-42f466846a0929ce522ceac4d8ed4f4dbf0c314f.zip
FreeBSD-src-42f466846a0929ce522ceac4d8ed4f4dbf0c314f.tar.gz
Use M_ZERO instead of memset() (!).
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_gre.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index f8ea058..a5dcc7d 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -167,8 +167,7 @@ gre_clone_create(ifc, unit)
{
struct gre_softc *sc;
- sc = malloc(sizeof(struct gre_softc), M_GRE, M_WAITOK);
- memset(sc, 0, sizeof(struct gre_softc));
+ sc = malloc(sizeof(struct gre_softc), M_GRE, M_WAITOK | M_ZERO);
if_initname(&sc->sc_if, ifc->ifc_name, unit);
sc->sc_if.if_softc = sc;
OpenPOWER on IntegriCloud