diff options
author | dg <dg@FreeBSD.org> | 1995-11-06 08:19:24 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-11-06 08:19:24 +0000 |
commit | fc86291f9705c923285abbcd125ac37b4477fc72 (patch) | |
tree | c56e47229d250e8a824d8d6fb14507537c38843e /sys/scsi/sd.c | |
parent | b47cbba2587bfef05ec717f7b0181cecba90d89e (diff) | |
download | FreeBSD-src-fc86291f9705c923285abbcd125ac37b4477fc72.zip FreeBSD-src-fc86291f9705c923285abbcd125ac37b4477fc72.tar.gz |
Initialize the 3 remaining elements of the scsi_cmd struct rather than
bzeroing the whole thing in sdstart().
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r-- | sys/scsi/sd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index b622556..1182bb6 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 |