Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Fix a silly mistake in device_compatible_entry_matc...



details:   https://anonhg.NetBSD.org/src/rev/0dc45bcc9adb
branches:  trunk
changeset: 319996:0dc45bcc9adb
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Jun 18 16:31:42 2018 +0000

description:
Fix a silly mistake in device_compatible_entry_matches() that I made
while re-factoring this from a prior version.

(I booted the wrong kernel when testing, oops.)

diffstat:

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

diffs (27 lines):

diff -r 968e0182855c -r 0dc45bcc9adb sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c  Mon Jun 18 15:36:54 2018 +0000
+++ b/sys/kern/subr_autoconf.c  Mon Jun 18 16:31:42 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.258 2018/06/18 15:36:54 thorpej Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.259 2018/06/18 16:31:42 thorpej Exp $ */
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.258 2018/06/18 15:36:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.259 2018/06/18 16:31:42 thorpej Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -2290,7 +2290,7 @@
                return false;
        
        while (*cpp != NULL)
-               if (strcmp(*cpp, compatible) == 0)
+               if (strcmp(*cpp++, compatible) == 0)
                        return true;
 
        return false;



Home | Main Index | Thread Index | Old Index