summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/hdaudio/hdafg.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/hdaudio/hdafg.c b/sys/dev/hdaudio/hdafg.c
index 301cb30cda9..1b3b97b0c16 100644
--- a/sys/dev/hdaudio/hdafg.c
+++ b/sys/dev/hdaudio/hdafg.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hdafg.c,v 1.14 2018/01/04 00:09:12 khorben Exp $ */
+/* $NetBSD: hdafg.c,v 1.15 2018/02/14 18:28:43 maya Exp $ */
/*
* Copyright (c) 2009 Precedence Technologies Ltd <support@precedence.co.uk>
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.14 2018/01/04 00:09:12 khorben Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.15 2018/02/14 18:28:43 maya Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -1265,10 +1265,6 @@ hdafg_control_parse(struct hdafg_softc *sc)
cnt = 0;
for (i = sc->sc_startnode; cnt < maxctls && i < sc->sc_endnode; i++) {
- if (cnt >= maxctls) {
- hda_error(sc, "ctl overflow\n");
- break;
- }
w = hdafg_widget_lookup(sc, i);
if (w == NULL || w->w_enable == false)
continue;