Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/hdaudio Enumerating probably always starts from sc->...



details:   https://anonhg.NetBSD.org/src/rev/c46522015481
branches:  trunk
changeset: 744870:c46522015481
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sat Feb 15 03:04:45 2020 +0000

description:
Enumerating probably always starts from sc->sc_startnode.

diffstat:

 sys/dev/hdaudio/hdafg.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2a30ba2867f9 -r c46522015481 sys/dev/hdaudio/hdafg.c
--- a/sys/dev/hdaudio/hdafg.c   Sat Feb 15 02:47:00 2020 +0000
+++ b/sys/dev/hdaudio/hdafg.c   Sat Feb 15 03:04:45 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdafg.c,v 1.20 2020/01/30 00:21:23 jmcneill Exp $ */
+/* $NetBSD: hdafg.c,v 1.21 2020/02/15 03:04:45 isaki Exp $ */
 
 /*
  * Copyright (c) 2009 Precedence Technologies Ltd <support%precedence.co.uk@localhost>
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.20 2020/01/30 00:21:23 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.21 2020/02/15 03:04:45 isaki Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -796,7 +796,7 @@
                if (as->as_dacs[i])
                        dacmap[as->as_dacs[i]] = 1;
 
-       for (i = 1; i < sc->sc_endnode; i++) {
+       for (i = sc->sc_startnode; i < sc->sc_endnode; i++) {
                if (!dacmap[i])
                        continue;
                w = hdafg_widget_lookup(sc, i);



Home | Main Index | Thread Index | Old Index