Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic comment tyop and KNF; pointed out by Nick



details:   https://anonhg.NetBSD.org/src/rev/d7072941ff1c
branches:  trunk
changeset: 817998:d7072941ff1c
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon Sep 19 19:06:57 2016 +0000

description:
comment tyop and KNF; pointed out by Nick

diffstat:

 sys/dev/ic/nvme.c |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r 09cbb733381a -r d7072941ff1c sys/dev/ic/nvme.c
--- a/sys/dev/ic/nvme.c Mon Sep 19 18:46:39 2016 +0000
+++ b/sys/dev/ic/nvme.c Mon Sep 19 19:06:57 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nvme.c,v 1.9 2016/09/18 21:19:39 jdolecek Exp $        */
+/*     $NetBSD: nvme.c,v 1.10 2016/09/19 19:06:57 jdolecek Exp $       */
 /*     $OpenBSD: nvme.c,v 1.49 2016/04/18 05:59:50 dlg Exp $ */
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nvme.c,v 1.9 2016/09/18 21:19:39 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nvme.c,v 1.10 2016/09/19 19:06:57 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1048,7 +1048,7 @@
                rv = 1;
 
                /*
-                * Unlock the mutext before calling the ccb_done callback
+                * Unlock the mutex before calling the ccb_done callback
                 * and re-lock afterwards. The callback triggers lddone()
                 * which schedules another i/o, and also calls nvme_ccb_put().
                 * Unlock/relock avoids possibility of deadlock.
@@ -1393,8 +1393,10 @@
        struct nvme_softc *sc = xsc;
        int rv = 0;
 
-       /* INTx is level triggered, controller deasserts the interrupt only
-        * when we advance command queue head via write to the doorbell */
+       /*
+        * INTx is level triggered, controller deasserts the interrupt only
+        * when we advance command queue head via write to the doorbell.
+        */
        if (nvme_q_complete(sc, sc->sc_admin_q))
                rv = 1;
        if (sc->sc_q != NULL)



Home | Main Index | Thread Index | Old Index