Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/hdaudio Remove dead code.
details: https://anonhg.NetBSD.org/src/rev/a96658e30ee0
branches: trunk
changeset: 359547:a96658e30ee0
user: maya <maya%NetBSD.org@localhost>
date: Wed Feb 14 18:28:43 2018 +0000
description:
Remove dead code.
>From David Binderman in PR kern/53029
diffstat:
sys/dev/hdaudio/hdafg.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (29 lines):
diff -r 23ca02756112 -r a96658e30ee0 sys/dev/hdaudio/hdafg.c
--- a/sys/dev/hdaudio/hdafg.c Wed Feb 14 17:43:09 2018 +0000
+++ b/sys/dev/hdaudio/hdafg.c Wed Feb 14 18:28:43 2018 +0000
@@ -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@localhost>
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index