diff options
author | mux <mux@FreeBSD.org> | 2003-08-12 14:51:18 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2003-08-12 14:51:18 +0000 |
commit | 78ac3dc812906e38350a8cc85455423166fe18f7 (patch) | |
tree | 58484d841444fd18370cfa238080820b4f8a46fe /sys | |
parent | 08139cea7639f364dba8e6b2aa478b4917f62afe (diff) | |
download | FreeBSD-src-78ac3dc812906e38350a8cc85455423166fe18f7.zip FreeBSD-src-78ac3dc812906e38350a8cc85455423166fe18f7.tar.gz |
Remove two useless bzero() calls.
Reviewed by: cognet
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/trm/trm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/trm/trm.c b/sys/dev/trm/trm.c index acc33a4..94d7970 100644 --- a/sys/dev/trm/trm.c +++ b/sys/dev/trm/trm.c @@ -2520,7 +2520,6 @@ trm_SRBdone(PACB pACB, PDCB pDCB, PSRB pSRB) pSRB->pSRBSGL->address = pSRB->SgSenseTemp.address; pSRB->pSRBSGL->length = pSRB->SgSenseTemp.length; pcsio->scsi_status = SCSI_STATUS_CHECK_COND; - bzero(&pcsio->sense_data, pcsio->sense_len); bcopy(trm_get_sense_buf(pACB, pSRB), &pcsio->sense_data, pcsio->sense_len); pcsio->ccb_h.status = CAM_SCSI_STATUS_ERROR @@ -3401,7 +3400,6 @@ trm_init(u_int16_t unit, device_t dev) printf("trm%d: cannot allocate ACB !\n", unit); return (NULL); } - bzero (pACB, sizeof (struct _ACB)); pACB->iores = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, 1, RF_ACTIVE); if (pACB->iores == NULL) { |