Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic KNF



details:   https://anonhg.NetBSD.org/src/rev/53e3b933f75b
branches:  trunk
changeset: 958580:53e3b933f75b
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Jan 11 16:48:35 2021 +0000

description:
KNF

diffstat:

 sys/dev/ic/ahcisata_core.c |  6 +++---
 sys/dev/ic/siisata.c       |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 780ee667d11d -r 53e3b933f75b sys/dev/ic/ahcisata_core.c
--- a/sys/dev/ic/ahcisata_core.c        Mon Jan 11 16:48:03 2021 +0000
+++ b/sys/dev/ic/ahcisata_core.c        Mon Jan 11 16:48:35 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ahcisata_core.c,v 1.94 2020/12/29 08:00:48 skrll Exp $ */
+/*     $NetBSD: ahcisata_core.c,v 1.95 2021/01/11 16:48:35 skrll Exp $ */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ahcisata_core.c,v 1.94 2020/12/29 08:00:48 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ahcisata_core.c,v 1.95 2021/01/11 16:48:35 skrll Exp $");
 
 #include <sys/types.h>
 #include <sys/malloc.h>
@@ -729,7 +729,7 @@
                 * commands active before we start processing.
                 */
 
-               for (slot=0; slot < sc->sc_ncmds; slot++) {
+               for (slot = 0; slot < sc->sc_ncmds; slot++) {
                        if ((aslots & __BIT(slot)) != 0 &&
                            (sact & __BIT(slot)) == 0) {
                                xfer = ata_queue_hwslot_to_xfer(chp, slot);
diff -r 780ee667d11d -r 53e3b933f75b sys/dev/ic/siisata.c
--- a/sys/dev/ic/siisata.c      Mon Jan 11 16:48:03 2021 +0000
+++ b/sys/dev/ic/siisata.c      Mon Jan 11 16:48:35 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siisata.c,v 1.45 2021/01/11 16:48:03 skrll Exp $ */
+/* $NetBSD: siisata.c,v 1.46 2021/01/11 16:48:35 skrll Exp $ */
 
 /* from ahcisata_core.c */
 
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.45 2021/01/11 16:48:03 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.46 2021/01/11 16:48:35 skrll Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -604,7 +604,7 @@
                 */
                uint32_t aslots = ata_queue_active(chp);
 
-               for (int slot=0; slot < SIISATA_MAX_SLOTS; slot++) {
+               for (int slot = 0; slot < SIISATA_MAX_SLOTS; slot++) {
                        if ((aslots & __BIT(slot)) != 0 &&
                            (pss & PR_PXSS(slot)) == 0) {
                                xfer = ata_queue_hwslot_to_xfer(chp, slot);



Home | Main Index | Thread Index | Old Index