Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci/hdaudio move all the unused stuff to ifdef notyet
details: https://anonhg.NetBSD.org/src/rev/582a06dff716
branches: trunk
changeset: 790527:582a06dff716
user: christos <christos%NetBSD.org@localhost>
date: Wed Oct 16 17:43:33 2013 +0000
description:
move all the unused stuff to ifdef notyet
diffstat:
sys/dev/pci/hdaudio/hdafg.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (48 lines):
diff -r 2167edd3d7bb -r 582a06dff716 sys/dev/pci/hdaudio/hdafg.c
--- a/sys/dev/pci/hdaudio/hdafg.c Wed Oct 16 17:40:55 2013 +0000
+++ b/sys/dev/pci/hdaudio/hdafg.c Wed Oct 16 17:43:33 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdafg.c,v 1.16 2012/03/11 19:39:36 para Exp $ */
+/* $NetBSD: hdafg.c,v 1.17 2013/10/16 17:43:33 christos 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.16 2012/03/11 19:39:36 para Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.17 2013/10/16 17:43:33 christos Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -2978,7 +2978,7 @@
{
struct hdaudio_widget *w;
uint32_t gdata, gmask, gdir;
- int commitgpio, numgpio;
+ int commitgpio;
int i;
/* Commit controls */
@@ -3000,10 +3000,10 @@
}
gdata = gmask = gdir = commitgpio = 0;
- numgpio = COP_GPIO_COUNT_NUM_GPIO(sc->sc_p.gpio_cnt);
+#ifdef notyet
+ int numgpio = COP_GPIO_COUNT_NUM_GPIO(sc->sc_p.gpio_cnt);
hda_trace(sc, "found %d GPIOs\n", numgpio);
-#if notyet
for (i = 0; i < numgpio && i < 8; i++) {
if (commitgpio == 0)
commitgpio = 1;
@@ -3199,6 +3199,7 @@
{
struct hdaudio_audiodev *ad = st->st_cookie;
int handled = 0;
+/*###3202 [cc] error: variable 'sts' set but not used [-Werror=unused-but-set-variable]%%%*/
uint8_t sts;
sts = hda_read1(ad->ad_sc->sc_host, HDAUDIO_SD_STS(st->st_shift));
Home |
Main Index |
Thread Index |
Old Index