diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-10-08 17:48:07 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-10-08 17:48:07 +0000 |
commit | fc2353b74733ab682dfac772af7f48100285828e (patch) | |
tree | b8de9934919b3897a2968c996ece15b14aa7824d /sys/arch/vax/mscp/mscp.c | |
parent | d8fb009b456a8195efa5e4a53a0c2b7ce816b7f6 (diff) |
A few trailing bzero/memset -> M_ZERO occurrences, cast removal and
size(*p) usage.
Diffstat (limited to 'sys/arch/vax/mscp/mscp.c')
-rw-r--r-- | sys/arch/vax/mscp/mscp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/vax/mscp/mscp.c b/sys/arch/vax/mscp/mscp.c index 0a62fcded95..d4034fdde5a 100644 --- a/sys/arch/vax/mscp/mscp.c +++ b/sys/arch/vax/mscp/mscp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mscp.c,v 1.9 2005/11/24 04:53:56 brad Exp $ */ +/* $OpenBSD: mscp.c,v 1.10 2007/10/08 17:48:06 krw Exp $ */ /* $NetBSD: mscp.c,v 1.16 2001/11/13 07:38:28 lukem Exp $ */ /* @@ -180,11 +180,9 @@ loop: */ if (mp->mscp_unit >= mi->mi_driveno) { /* Must expand drive table */ int tmpno = ((mp->mscp_unit + 32) & 0xffe0) * sizeof(void *); - struct device **tmp = (struct device **) - malloc(tmpno, M_DEVBUF, M_NOWAIT); + struct device **tmp = malloc(tmpno, M_DEVBUF, M_NOWAIT|M_ZERO); if (tmp == NULL) panic("mscp_dorsp"); - bzero(tmp, tmpno); if (mi->mi_driveno) { bcopy(mi->mi_dp, tmp, mi->mi_driveno); free(mi->mi_dp, mi->mi_driveno); |