Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/scsipi Initialize xs_status to 0 after allocating a ...



details:   https://anonhg.NetBSD.org/src/rev/0da8464794d1
branches:  trunk
changeset: 486953:0da8464794d1
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Wed May 31 11:14:25 2000 +0000

description:
Initialize xs_status to 0 after allocating a scsipi_xfer struct. Makes life
easier for driver debugging.

diffstat:

 sys/dev/scsipi/scsipi_base.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 94c069720bfc -r 0da8464794d1 sys/dev/scsipi/scsipi_base.c
--- a/sys/dev/scsipi/scsipi_base.c      Wed May 31 10:25:15 2000 +0000
+++ b/sys/dev/scsipi/scsipi_base.c      Wed May 31 11:14:25 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsipi_base.c,v 1.36 2000/05/27 23:59:58 fvdl Exp $    */
+/*     $NetBSD: scsipi_base.c,v 1.37 2000/05/31 11:14:25 fvdl Exp $    */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -134,6 +134,7 @@
        if (xs != NULL) {
                callout_init(&xs->xs_callout);
                xs->xs_control = flags;
+               xs->xs_status = 0;
                TAILQ_INSERT_TAIL(&sc_link->pending_xfers, xs, device_q);
                bzero(&xs->cmdstore, sizeof(xs->cmdstore));
        }



Home | Main Index | Thread Index | Old Index