Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/scsipi Some misspelling-in-comments fixes for scsipi



details:   https://anonhg.NetBSD.org/src/rev/479fb24c4958
branches:  trunk
changeset: 1014314:479fb24c4958
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Thu Sep 17 01:19:41 2020 +0000

description:
Some misspelling-in-comments fixes for scsipi

diffstat:

 sys/dev/scsipi/scsiconf.c    |  12 ++++++------
 sys/dev/scsipi/scsipi_base.c |  22 +++++++++++-----------
 2 files changed, 17 insertions(+), 17 deletions(-)

diffs (142 lines):

diff -r ffb9b4138517 -r 479fb24c4958 sys/dev/scsipi/scsiconf.c
--- a/sys/dev/scsipi/scsiconf.c Thu Sep 17 00:48:56 2020 +0000
+++ b/sys/dev/scsipi/scsiconf.c Thu Sep 17 01:19:41 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsiconf.c,v 1.288 2020/07/11 14:31:46 kim Exp $       */
+/*     $NetBSD: scsiconf.c,v 1.289 2020/09/17 01:19:41 jakllsch Exp $  */
 
 /*-
  * Copyright (c) 1998, 1999, 2004 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scsiconf.c,v 1.288 2020/07/11 14:31:46 kim Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scsiconf.c,v 1.289 2020/09/17 01:19:41 jakllsch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -401,7 +401,7 @@
 
        /*
         * Some HBAs provide an abstracted view of the bus; give them an
-        * oppertunity to re-scan it before we do.
+        * opportunity to re-scan it before we do.
         */
        scsipi_adapter_ioctl(chan, SCBUSIOLLSCAN, NULL, 0, curproc);
 
@@ -809,10 +809,10 @@
        int locs[SCSIBUSCF_NLOCS];
 
        /*
-        * Assume no more luns to search after this one.
+        * Assume no more LUNs to search after this one.
         * If we successfully get Inquiry data and after
         * merging quirks we find we can probe for more
-        * luns, we will.
+        * LUNs, we will.
         */
        docontinue = 0;
 
@@ -893,7 +893,7 @@
                break;
        }
 
-       /* Let the adapter driver handle the device separatley if it wants. */
+       /* Let the adapter driver handle the device separately if it wants. */
        if (chan->chan_adapter->adapt_accesschk != NULL &&
            (*chan->chan_adapter->adapt_accesschk)(periph, &sa.sa_inqbuf))
                goto bad;
diff -r ffb9b4138517 -r 479fb24c4958 sys/dev/scsipi/scsipi_base.c
--- a/sys/dev/scsipi/scsipi_base.c      Thu Sep 17 00:48:56 2020 +0000
+++ b/sys/dev/scsipi/scsipi_base.c      Thu Sep 17 01:19:41 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsipi_base.c,v 1.186 2020/04/13 00:27:17 chs Exp $    */
+/*     $NetBSD: scsipi_base.c,v 1.187 2020/09/17 01:19:41 jakllsch Exp $       */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2002, 2003, 2004 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scsipi_base.c,v 1.186 2020/04/13 00:27:17 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scsipi_base.c,v 1.187 2020/09/17 01:19:41 jakllsch Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_scsi.h"
@@ -871,7 +871,7 @@
  *     Look at the returned sense and act on the error, determining
  *     the unix error number to pass back.  (0 = report no error)
  *
- *     NOTE: If we return ERESTART, we are expected to haved
+ *     NOTE: If we return ERESTART, we are expected to have
  *     thawed the device!
  *
  *     THIS IS THE DEFAULT ERROR HANDLER FOR SCSI DEVICES.
@@ -1208,7 +1208,7 @@
         * If we request more data than the device can provide, it SHOULD just
         * return a short response.  However, some devices error with an
         * ILLEGAL REQUEST sense code, and yet others have even more special
-        * failture modes (such as the GL641USB flash adapter, which goes loony
+        * failure modes (such as the GL641USB flash adapter, which goes loony
         * and sends corrupted CRCs).  To work around this, and to bring our
         * behavior more in line with other OSes, we do a shorter inquiry,
         * covering all the SCSI-2 information, first, and then request more
@@ -1395,7 +1395,7 @@
 /*
  * scsipi_get_opcodeinfo:
  *
- * query the device for supported commends and their timeout
+ * query the device for supported commands and their timeout
  * building a timeout lookup table if timeout information is available.
  */
 void
@@ -1514,7 +1514,7 @@
 
 /*
  * scsipi_update_timeouts:
- *     Overide timeout value if device/config provided
+ *     Override timeout value if device/config provided
  *      timeouts are available.
  */
 static void
@@ -1665,9 +1665,9 @@
                /*
                 * If it's a polling job, just return, to unwind the
                 * call graph.  We don't need to restart the queue,
-                * because pollings jobs are treated specially, and
+                * because polling jobs are treated specially, and
                 * are really only used during crash dumps anyway
-                * (XXX or during boot-time autconfiguration of
+                * (XXX or during boot-time autoconfiguration of
                 * ATAPI devices).
                 */
                if (xs->xs_control & XS_CTL_POLL) {
@@ -1995,7 +1995,7 @@
                xs->error = XS_RESET;
                return;
        case EIO:
-                /* request sense coudn't be performed */
+                /* request sense couldn't be performed */
                /*
                 * XXX this isn't quite right but we don't have anything
                 * better for now
@@ -2266,7 +2266,7 @@
                }
        }
 
-       /* If the adaptor wants us to poll, poll. */
+       /* If the adapter wants us to poll, poll. */
        if (chan->chan_adapter->adapt_flags & SCSIPI_ADAPT_POLL_ONLY)
                xs->xs_control |= XS_CTL_POLL;
 
@@ -2338,7 +2338,7 @@
                goto restarted;
 
        /*
-        * If it was meant to run async and we cleared aync ourselve,
+        * If it was meant to run async and we cleared async ourselves,
         * don't return an error here. It has already been handled
         */
        if (oasync)



Home | Main Index | Thread Index | Old Index