diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-07-28 01:53:13 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-07-28 01:53:13 +0000 |
commit | 45d4032c7c146caeccb26f4404778b4688025783 (patch) | |
tree | 7290999cf81dec0a2e3703171662509f2fa25516 /sys/scsi | |
parent | 24a7ada5e570100a12999b8d42a884effdab5f9a (diff) |
No need to bzero() malloc'd memory if we used M_ZERO.
ok matthew@
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/scsi_base.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c index e3632f2a60d..52649b23aec 100644 --- a/sys/scsi/scsi_base.c +++ b/sys/scsi/scsi_base.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_base.c,v 1.189 2010/07/27 04:41:56 matthew Exp $ */ +/* $OpenBSD: scsi_base.c,v 1.190 2010/07/28 01:53:12 krw Exp $ */ /* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */ /* @@ -658,8 +658,6 @@ scsi_size(struct scsi_link *sc_link, int flags, u_int32_t *blksize) xs->datalen = sizeof(*rdcap); xs->timeout = 20000; - bzero(rdcap, sizeof(*rdcap)); - error = scsi_xs_sync(xs); scsi_xs_put(xs); @@ -698,8 +696,6 @@ scsi_size(struct scsi_link *sc_link, int flags, u_int32_t *blksize) xs->datalen = sizeof(*rdcap16); xs->timeout = 20000; - bzero(rdcap16, sizeof(*rdcap16)); - cmd = (struct scsi_read_capacity_16 *)xs->cmd; cmd->byte2 = SRC16_SERVICE_ACTION; _lto4b(sizeof(*rdcap16), cmd->length); |