diff options
| author | maya <maya@NetBSD.org> | 2018-02-14 18:28:43 +0000 |
|---|---|---|
| committer | maya <maya@NetBSD.org> | 2018-02-14 18:28:43 +0000 |
| commit | e1b24f80b4dccbf89f669decefeb79de3313a2b0 (patch) | |
| tree | 4fa1a7900fb846ad222672c735d89c50ee715dbb /sys/dev/hdaudio | |
| parent | c422c6465118293926feb702ffc0ebd5282d1fff (diff) | |
Remove dead code.
From David Binderman in PR kern/53029
Diffstat (limited to 'sys/dev/hdaudio')
| -rw-r--r-- | sys/dev/hdaudio/hdafg.c | 8 |
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; |
