- fix incomplete initializer

- remove unsigned comparison < 0
This commit is contained in:
christos 2006-08-30 00:51:48 +00:00
parent 16f3fda8be
commit 976d4b3f1c
1 changed files with 4 additions and 3 deletions

View File

@ -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