Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Fill in ccb->ccb_req.sgcount with the value that'...



details:   https://anonhg.NetBSD.org/src/rev/67435aa5a040
branches:  trunk
changeset: 485711:67435aa5a040
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed May 03 18:58:15 2000 +0000

description:
Fill in ccb->ccb_req.sgcount with the value that's guaranteed to
be initialized.

diffstat:

 sys/dev/ic/cac.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 3f37354d0637 -r 67435aa5a040 sys/dev/ic/cac.c
--- a/sys/dev/ic/cac.c  Wed May 03 18:28:46 2000 +0000
+++ b/sys/dev/ic/cac.c  Wed May 03 18:58:15 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cac.c,v 1.4 2000/04/26 15:54:02 ad Exp $       */
+/*     $NetBSD: cac.c,v 1.5 2000/05/03 18:58:15 thorpej Exp $  */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cac.c,v 1.4 2000/04/26 15:54:02 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cac.c,v 1.5 2000/05/03 18:58:15 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -313,7 +313,7 @@
 
        ccb->ccb_req.bcount = htole16(howmany(size, DEV_BSIZE));
        ccb->ccb_req.command = command;
-       ccb->ccb_req.sgcount = i;
+       ccb->ccb_req.sgcount = nsegs;
        ccb->ccb_req.blkno = htole32(blkno);
        
        ccb->ccb_flags = flags;
@@ -356,7 +356,7 @@
        ccb_done = NULL;
 
        for (;;) {
-               for (; timo != 0; timo--) {
+               for (completed = 0; timo != 0; timo--) {
                        if ((completed = sc->sc_cl->cl_completed(sc)) != 0)
                                break;
                        DELAY(100);



Home | Main Index | Thread Index | Old Index