Source-Changes-HG archive

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

[src/trunk]: src/sys/net KNF two comments.



details:   https://anonhg.NetBSD.org/src/rev/f8b2763e7644
branches:  trunk
changeset: 368433:f8b2763e7644
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Jul 11 07:40:58 2022 +0000

description:
KNF two comments.

diffstat:

 sys/net/if.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 895573a6f0af -r f8b2763e7644 sys/net/if.c
--- a/sys/net/if.c      Mon Jul 11 07:36:56 2022 +0000
+++ b/sys/net/if.c      Mon Jul 11 07:40:58 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.508 2022/07/11 07:36:56 skrll Exp $   */
+/*     $NetBSD: if.c,v 1.509 2022/07/11 07:40:58 skrll Exp $   */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.508 2022/07/11 07:36:56 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.509 2022/07/11 07:40:58 skrll Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -2424,7 +2424,8 @@
        KERNEL_LOCK_UNLESS_NET_MPSAFE();
        s = splnet();
 
-       /* Pop a link state change from the queue and process it.
+       /*
+        * Pop a link state change from the queue and process it.
         * If there is nothing to process then if_detach() has been called.
         * We keep if_link_scheduled = true so the queue can safely drain
         * without more work being queued. */
@@ -3869,7 +3870,8 @@
                if (cantflags != 0)
                        ifp->if_flags ^= cantflags;
 
-                /* Traditionally, we do not call if_ioctl after
+                /*
+                * Traditionally, we do not call if_ioctl after
                  * setting/clearing only IFF_PROMISC if the interface
                  * isn't IFF_UP.  Uphold that tradition.
                 */



Home | Main Index | Thread Index | Old Index