diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-09-04 03:46:49 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-09-04 03:46:49 +0000 |
commit | 1008430d232e13440fde3e77ec84e95e62aa9cad (patch) | |
tree | 6afa2ca2bc624fb0b7998cde75340771c700c237 | |
parent | efa09d65b255404206c9d77416aed49ee701fda3 (diff) |
remove an unneccessary (and incorrectly sized) bzero
fix suggested by tedu@, ok deraadt@, fgsch@
-rw-r--r-- | sys/dev/pcmcia/if_sm_pcmcia.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pcmcia/if_sm_pcmcia.c b/sys/dev/pcmcia/if_sm_pcmcia.c index 6c8374b791d..57146940a40 100644 --- a/sys/dev/pcmcia/if_sm_pcmcia.c +++ b/sys/dev/pcmcia/if_sm_pcmcia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sm_pcmcia.c,v 1.19 2003/02/18 13:14:43 jmc Exp $ */ +/* $OpenBSD: if_sm_pcmcia.c,v 1.20 2003/09/04 03:46:48 avsm Exp $ */ /* $NetBSD: if_sm_pcmcia.c,v 1.11 1998/08/15 20:47:32 thorpej Exp $ */ /*- @@ -291,8 +291,7 @@ sm_pcmcia_ascii_enaddr(cisstr, myla) /* Bogus address! */ return (0); } - bcopy(cisstr, enaddr_str, 12); - bzero(myla, sizeof(myla)); + bcopy(cisstr, enaddr_str, sizeof enaddr_str); for (i = 0; i < 6; i++) { for (j = 0; j < 2; j++) { /* Convert to upper case. */ |