diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-09-07 17:41:10 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-09-07 17:41:10 +0000 |
commit | edd3236a722f0794b12613e6096db704b2cd904b (patch) | |
tree | f16fba9e224eaca5403ea41abb6bbd601e60edd7 /sys/dev/ic/trm.c | |
parent | 7e8b13bd425975b8103e6f91764990f6cb898083 (diff) |
The obvious bzero/memset -> M_ZERO changes.
Diffstat (limited to 'sys/dev/ic/trm.c')
-rw-r--r-- | sys/dev/ic/trm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/ic/trm.c b/sys/dev/ic/trm.c index 2f06c9cb732..8e1f73e1776 100644 --- a/sys/dev/ic/trm.c +++ b/sys/dev/ic/trm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trm.c,v 1.7 2005/12/03 16:53:16 krw Exp $ +/* $OpenBSD: trm.c,v 1.8 2007/09/07 17:41:09 krw Exp $ * ------------------------------------------------------------ * O.S : OpenBSD * File Name : trm.c @@ -2424,14 +2424,13 @@ trm_initACB(struct trm_softc *sc, int unit) continue; for (lun = 0; lun < TRM_MAX_LUNS; lun++) { - pDCB = (struct trm_dcb *)malloc(sizeof(struct trm_dcb), M_DEVBUF, M_NOWAIT); + pDCB = (struct trm_dcb *)malloc(sizeof(struct trm_dcb), + M_DEVBUF, M_NOWAIT | M_ZERO); sc->pDCB[target][lun] = pDCB; if (pDCB == NULL) continue; - bzero(pDCB, sizeof(struct trm_dcb)); - pDCB->target = target; pDCB->lun = lun; pDCB->pActiveSRB = NULL; |