diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-04-09 20:59:08 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-04-09 20:59:08 +0000 |
commit | ceee4f5342e3401307ce33ac727d61911bf17517 (patch) | |
tree | e96ca5504273bc0a969c3d1674b4eb22b0648fd2 /sys | |
parent | 17395e9e3693eb6f231a750e6e21e34123478929 (diff) |
encif is a global variable and thus pre-zeroed, don't bother bzero()ing
it after the fact.
ok henning@, claudio@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_enc.c | 4 |
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); |