diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-10-08 04:15:16 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-10-08 04:15:16 +0000 |
commit | d0aa54a0d4ea6a5829f72c5d8e83be3a2600deca (patch) | |
tree | 00047cb58ad4a4453db399c255919b5bd3fad9b7 /sys/arch/alpha | |
parent | 5fe5ffe7fab12d593fcc5f9f1fe293422159975c (diff) |
More simple memset(,0,) -> M_ZERO changes. In this batch move to
size(*p) as the first malloc() parameter where p is declared locally
and thus easy to check. Add M_ZERO to gpe_table allocation in acpi.c
even though there is no obvious bzero or memset nearby.
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/pci/mcpcia.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/alpha/pci/mcpcia.c b/sys/arch/alpha/pci/mcpcia.c index f22133bfe3e..65aaa2d3732 100644 --- a/sys/arch/alpha/pci/mcpcia.c +++ b/sys/arch/alpha/pci/mcpcia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mcpcia.c,v 1.1 2007/03/16 21:22:27 robert Exp $ */ +/* $OpenBSD: mcpcia.c,v 1.2 2007/10/08 04:15:15 krw Exp $ */ /* $NetBSD: mcpcia.c,v 1.20 2007/03/04 05:59:11 christos Exp $ */ /*- @@ -179,8 +179,7 @@ mcpciaattach(parent, self, aux) ma->ma_gid == mcpcia_console_configuration.cc_gid) ccp = &mcpcia_console_configuration; else { - ccp = malloc(sizeof(struct mcpcia_config), M_DEVBUF, M_WAITOK); - memset(ccp, 0, sizeof(struct mcpcia_config)); + ccp = malloc(sizeof(*ccp), M_DEVBUF, M_WAITOK | M_ZERO); ccp->cc_mid = ma->ma_mid; ccp->cc_gid = ma->ma_gid; |