From 7208a45f0807e5eac54eb3720aa372fd9be4279f Mon Sep 17 00:00:00 2001 From: mux Date: Tue, 12 Aug 2003 14:51:18 +0000 Subject: [PATCH] Remove two useless bzero() calls. Reviewed by: cognet --- sys/dev/trm/trm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/trm/trm.c b/sys/dev/trm/trm.c index acc33a4c5215..94d797003d0b 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) {