Module Name: src
Committed By: jmcneill
Date: Fri Jan 7 18:24:53 UTC 2011
Modified Files:
src/sys/dev/pci/hdaudio: hdaudio_afg.c
Log Message:
fix compilation when _MODULE is not defined
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/pci/hdaudio/hdaudio_afg.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/hdaudio/hdaudio_afg.c
diff -u src/sys/dev/pci/hdaudio/hdaudio_afg.c:1.28 src/sys/dev/pci/hdaudio/hdaudio_afg.c:1.29
--- src/sys/dev/pci/hdaudio/hdaudio_afg.c:1.28 Fri Jan 7 15:30:29 2011
+++ src/sys/dev/pci/hdaudio/hdaudio_afg.c Fri Jan 7 18:24:53 2011
@@ -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 <[email protected]>
@@ -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: