Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci KNF some comments



details:   https://anonhg.NetBSD.org/src/rev/104bd9eb8826
branches:  trunk
changeset: 368234:104bd9eb8826
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Jun 30 19:06:35 2022 +0000

description:
KNF some comments

diffstat:

 sys/dev/pci/if_bge.c |  16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diffs (58 lines):

diff -r 9f79f4b7e826 -r 104bd9eb8826 sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c      Thu Jun 30 16:49:55 2022 +0000
+++ b/sys/dev/pci/if_bge.c      Thu Jun 30 19:06:35 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bge.c,v 1.356 2022/06/30 16:49:55 skrll Exp $       */
+/*     $NetBSD: if_bge.c,v 1.357 2022/06/30 19:06:35 skrll Exp $       */
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.356 2022/06/30 16:49:55 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.357 2022/06/30 19:06:35 skrll Exp $");
 
 #include <sys/param.h>
 
@@ -1255,7 +1255,8 @@
        struct bge_softc * const sc = ifp->if_softc;
        int s;
 
-       /* For now, just save the new Rx-intr thresholds and record
+       /*
+        * For now, just save the new Rx-intr thresholds and record
         * that a threshold update is pending.  Updating the hardware
         * registers here (even at splhigh()) is observed to
         * occasionally cause glitches where Rx-interrupts are not
@@ -4664,7 +4665,8 @@
        if (BGE_IS_5717_PLUS(sc))
                intrmask = 0;
 
-       /* It is possible for the interrupt to arrive before
+       /*
+        * It is possible for the interrupt to arrive before
         * the status block is updated prior to the interrupt.
         * Reading the PCI State register will confirm whether the
         * interrupt is ours and will flush the status block.
@@ -4986,7 +4988,8 @@
                if (mlen >= 8)
                        continue;
 
-               /* If we get here, mbuf data is too small for DMA engine.
+               /*
+                * If we get here, mbuf data is too small for DMA engine.
                 * Try to fix by shuffling data to prev or next in chain.
                 * If that fails, do a compacting deep-copy of the whole chain.
                 */
@@ -5011,7 +5014,8 @@
                        m->m_next->m_len -= shortfall;
                        m->m_next->m_data += shortfall;
                } else if (m->m_next == NULL || 1) {
-                       /* Got a runt at the very end of the packet.
+                       /*
+                        * Got a runt at the very end of the packet.
                         * borrow data from the tail of the preceding mbuf and
                         * update its length in-place. (The original data is
                         * still valid, so we can do this even if prev is not



Home | Main Index | Thread Index | Old Index