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 fix compilation when _MODULE is not defined
details: https://anonhg.NetBSD.org/src/rev/94318e2eba35
branches: trunk
changeset: 760569:94318e2eba35
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Fri Jan 07 18:24:53 2011 +0000
description:
fix compilation when _MODULE is not defined
diffstat:
sys/dev/pci/hdaudio/hdaudio_afg.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 2bbd7be039ad -r 94318e2eba35 sys/dev/pci/hdaudio/hdaudio_afg.c
--- a/sys/dev/pci/hdaudio/hdaudio_afg.c Fri Jan 07 18:00:12 2011 +0000
+++ b/sys/dev/pci/hdaudio/hdaudio_afg.c Fri Jan 07 18:24:53 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdaudio_afg.c,v 1.28 2011/01/07 15:30:29 jmcneill Exp $ */
+/* $NetBSD: hdaudio_afg.c,v 1.29 2011/01/07 18:24:53 jmcneill Exp $ */
/*
* Copyright (c) 2009 Precedence Technologies Ltd <support%precedence.co.uk@localhost>
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdaudio_afg.c,v 1.28 2011/01/07 15:30:29 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdaudio_afg.c,v 1.29 2011/01/07 18:24:53 jmcneill Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -3841,7 +3841,7 @@
static int
hdafg_modcmd(modcmd_t cmd, void *opaque)
{
- int error;
+ int error = 0;
switch (cmd) {
case MODULE_CMD_INIT:
Home |
Main Index |
Thread Index |
Old Index