summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorjdolecek <jdolecek@NetBSD.org>2016-09-19 19:06:57 +0000
committerjdolecek <jdolecek@NetBSD.org>2016-09-19 19:06:57 +0000
commit6299e0ef37f1a96bedc4dcb8bed6fc8beb3dcdda (patch)
tree413b8fb7c310f962dd73d933216127528ade9ce8 /sys/dev
parent22157b2ddfbd2103afb78ac117d4573ce0a11e42 (diff)
comment tyop and KNF; pointed out by Nick
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/nvme.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c
index 39c3be46637..ecf9c1f1f26 100644
--- a/sys/dev/ic/nvme.c
+++ b/sys/dev/ic/nvme.c
@@ -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 @@ nvme_q_complete(struct nvme_softc *sc, struct nvme_queue *q)
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 @@ nvme_intr(void *xsc)
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)