From 9b36d4e667f1b5b7de3d46ddbbbf03d3813bc26f Mon Sep 17 00:00:00 2001 From: David Greenman Date: Mon, 6 Nov 1995 08:19:24 +0000 Subject: [PATCH] Initialize the 3 remaining elements of the scsi_cmd struct rather than bzeroing the whole thing in sdstart(). --- sys/scsi/sd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index b6225561a485..1182bb6cf393 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -14,7 +14,7 @@ * * Ported to run under 386BSD by Julian Elischer (julian@dialix.oz.au) Sept 1992 * - * $Id: sd.c,v 1.67 1995/10/12 02:01:56 julian Exp $ + * $Id: sd.c,v 1.68 1995/10/21 23:13:09 phk Exp $ */ #define SPLSD splbio @@ -509,7 +509,6 @@ sdstart(u_int32 unit, u_int32 flags) /* * Fill out the scsi command */ - bzero(&cmd, sizeof(cmd)); cmd.op_code = (bp->b_flags & B_READ) ? READ_BIG : WRITE_BIG; cmd.addr_3 = (blkno & 0xff000000UL) >> 24; @@ -518,6 +517,7 @@ sdstart(u_int32 unit, u_int32 flags) cmd.addr_0 = blkno & 0xff; cmd.length2 = (nblk & 0xff00) >> 8; cmd.length1 = (nblk & 0xff); + cmd.byte2 = cmd.reserved = cmd.control = 0; /* * Call the routine that chats with the adapter. * Note: we cannot sleep as we may be an interrupt