Module Name:    src
Committed By:   maya
Date:           Wed Feb 14 18:28:43 UTC 2018

Modified Files:
        src/sys/dev/hdaudio: hdafg.c

Log Message:
Remove dead code.

>From David Binderman in PR kern/53029


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/hdaudio/hdafg.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/hdaudio/hdafg.c
diff -u src/sys/dev/hdaudio/hdafg.c:1.14 src/sys/dev/hdaudio/hdafg.c:1.15
--- src/sys/dev/hdaudio/hdafg.c:1.14	Thu Jan  4 00:09:12 2018
+++ src/sys/dev/hdaudio/hdafg.c	Wed Feb 14 18:28:43 2018
@@ -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 <supp...@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 *
 
 	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;

Reply via email to