Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/scsipi ENODEV is not a value supposed to be assigned...



details:   https://anonhg.NetBSD.org/src/rev/e7e8e6b4ef98
branches:  trunk
changeset: 477231:e7e8e6b4ef98
user:      enami <enami%NetBSD.org@localhost>
date:      Sun Oct 17 06:13:01 1999 +0000

description:
ENODEV is not a value supposed to be assigned to xs->error.  Use
XS_DRIVER_STUFFUP instead.

diffstat:

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

diffs (18 lines):

diff -r d7e1618fb4b1 -r e7e8e6b4ef98 sys/dev/scsipi/scsipi_base.c
--- a/sys/dev/scsipi/scsipi_base.c      Sun Oct 17 02:40:26 1999 +0000
+++ b/sys/dev/scsipi/scsipi_base.c      Sun Oct 17 06:13:01 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsipi_base.c,v 1.25 1999/10/06 05:01:05 mjacob Exp $  */
+/*     $NetBSD: scsipi_base.c,v 1.26 1999/10/17 06:13:01 enami Exp $   */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -205,7 +205,7 @@
 
        while ((xs = TAILQ_FIRST(&sc_link->pending_xfers)) != NULL) {
                xs->xs_status |= XS_STS_DONE;
-               xs->error = ENODEV;
+               xs->error = XS_DRIVER_STUFFUP;
                scsipi_done(xs);
        }
 }



Home | Main Index | Thread Index | Old Index