summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-08-30 00:51:48 +0000
committerchristos <christos@NetBSD.org>2006-08-30 00:51:48 +0000
commit976d4b3f1cfb6d94c40e0256dfcdc9fd532edda3 (patch)
tree79b25e2f8e728e8d2e20318869da715f8b7aacff /sys/dev
parent16f3fda8be45b0897b71428dad64278d0c90eb03 (diff)
- fix incomplete initializer
- remove unsigned comparison < 0
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/emuxki.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pci/emuxki.c b/sys/dev/pci/emuxki.c
index 913252d67ff..b6f03e495d2 100644
--- a/sys/dev/pci/emuxki.c
+++ b/sys/dev/pci/emuxki.c
@@ -1,4 +1,4 @@
-/* $NetBSD: emuxki.c,v 1.45 2006/04/14 19:33:12 christos Exp $ */
+/* $NetBSD: emuxki.c,v 1.46 2006/08/30 00:51:48 christos Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: emuxki.c,v 1.45 2006/04/14 19:33:12 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: emuxki.c,v 1.46 2006/08/30 00:51:48 christos Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -207,6 +207,7 @@ static const struct audio_hw_if emuxki_hw_if = {
emuxki_trigger_output,
emuxki_trigger_input,
NULL, /* dev_ioctl */
+ NULL, /* powerstate */
};
#if 0
@@ -1427,7 +1428,7 @@ static int
emuxki_recsrc_reserve(struct emuxki_voice *voice, emuxki_recsrc_t source)
{
- if (source < 0 || source >= EMU_NUMRECSRCS) {
+ if (source >= EMU_NUMRECSRCS) {
#ifdef EMUXKI_DEBUG
printf("Tried to reserve invalid source: %d\n", source);
#endif