summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2002-10-17 03:45:34 +0000
committermarcel <marcel@FreeBSD.org>2002-10-17 03:45:34 +0000
commitea23c70af419695da4d796436216263da9fd0804 (patch)
tree2e8e62401763c012a117afe650ea0c35c79d1149 /sys/dev/sound
parent17310089d60efa1cb368d0f9e2be1d021b64cf77 (diff)
downloadFreeBSD-src-ea23c70af419695da4d796436216263da9fd0804.zip
FreeBSD-src-ea23c70af419695da4d796436216263da9fd0804.tar.gz
Suppress the uninitialized variable warning on ia64 introduced by
the previous commit by initializing i and j. These initializations will normally be eliminated by the compiler.
Diffstat (limited to 'sys/dev/sound')
-rw-r--r--sys/dev/sound/pci/t4dwave.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/sound/pci/t4dwave.c b/sys/dev/sound/pci/t4dwave.c
index e62f90e..c34fe39 100644
--- a/sys/dev/sound/pci/t4dwave.c
+++ b/sys/dev/sound/pci/t4dwave.c
@@ -187,6 +187,8 @@ tr_rdcd(kobj_t obj, void *devinfo, int regno)
return -1;
}
+ i = j = 0;
+
regno &= 0x7f;
snd_mtxlock(tr->lock);
if (tr->type == ALI_PCI_ID) {
@@ -238,6 +240,8 @@ tr_wrcd(kobj_t obj, void *devinfo, int regno, u_int32_t data)
return -1;
}
+ i = 0;
+
regno &= 0x7f;
#if 0
printf("tr_wrcd: reg %x was %x", regno, tr_rdcd(devinfo, regno));
OpenPOWER on IntegriCloud