Source-Changes-HG archive

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

[src/trunk]: src/sys/kern devsw(9): Clarify to match loop condition. NFCI.



details:   https://anonhg.NetBSD.org/src/rev/ad5de9d16f80
branches:  trunk
changeset: 369703:ad5de9d16f80
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Aug 28 12:24:39 2022 +0000

description:
devsw(9): Clarify to match loop condition.  NFCI.

diffstat:

 sys/kern/subr_devsw.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f9eef8f1f2a0 -r ad5de9d16f80 sys/kern/subr_devsw.c
--- a/sys/kern/subr_devsw.c     Sun Aug 28 12:04:47 2022 +0000
+++ b/sys/kern/subr_devsw.c     Sun Aug 28 12:24:39 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_devsw.c,v 1.47 2022/08/28 11:17:38 riastradh Exp $        */
+/*     $NetBSD: subr_devsw.c,v 1.48 2022/08/28 12:24:39 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2001, 2002, 2007, 2008 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_devsw.c,v 1.47 2022/08/28 11:17:38 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_devsw.c,v 1.48 2022/08/28 12:24:39 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_dtrace.h"
@@ -194,7 +194,7 @@
         * If we already found a conv, we're done.  Otherwise, find an
         * empty slot or extend the table.
         */
-       if (i != max_devsw_convs) {
+       if (i < max_devsw_convs) {
                error = 0;
                goto out;
        }



Home | Main Index | Thread Index | Old Index