From 976d4b3f1cfb6d94c40e0256dfcdc9fd532edda3 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 30 Aug 2006 00:51:48 +0000 Subject: [PATCH] - fix incomplete initializer - remove unsigned comparison < 0 --- sys/dev/pci/emuxki.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/emuxki.c b/sys/dev/pci/emuxki.c index 913252d67ff6..b6f03e495d2c 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 -__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 #include @@ -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