summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2010-04-09 20:59:07 +0000
committeroga <oga@openbsd.org>2010-04-09 20:59:07 +0000
commit76ba9ff94367cfccb260adfde08133701227b77c (patch)
tree66204fd50928cd530f70fe37bbf1fcec9defb12c
parentreplace pool_get(), memset(,0,) with pool_get(,PR_ZERO) as $DEITY (diff)
downloadwireguard-openbsd-76ba9ff94367cfccb260adfde08133701227b77c.tar.xz
wireguard-openbsd-76ba9ff94367cfccb260adfde08133701227b77c.zip
encif is a global variable and thus pre-zeroed, don't bother bzero()ing
it after the fact. ok henning@, claudio@
-rw-r--r--sys/net/if_enc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/if_enc.c b/sys/net/if_enc.c
index d97e089b97e..52c5813b3b2 100644
--- a/sys/net/if_enc.c
+++ b/sys/net/if_enc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_enc.c,v 1.47 2007/12/20 02:53:02 brad Exp $ */
+/* $OpenBSD: if_enc.c,v 1.48 2010/04/09 20:59:07 oga Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -85,8 +85,6 @@ encattach(int nenc)
struct ifnet *ifp;
int i;
- bzero(encif, sizeof(encif));
-
for (i = 0; i < NENC; i++) {
ifp = &encif[i].sc_if;
snprintf(ifp->if_xname, sizeof ifp->if_xname, "enc%d", i);