summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2001-11-29 13:05:31 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2001-11-29 13:05:31 +0000
commit78b9afedc901ececa41471d9c08e88b671c11da6 (patch)
tree8740289b39305415b1e407ebecf4109d37fa2310
parent9d5da6418650e17828f1bf71bbefaab5cb264bf1 (diff)
sc must be initialized.
-rw-r--r--sys/dev/pci/emuxki.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/emuxki.c b/sys/dev/pci/emuxki.c
index f6c741a4671..a1fa65e18e0 100644
--- a/sys/dev/pci/emuxki.c
+++ b/sys/dev/pci/emuxki.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: emuxki.c,v 1.6 2001/11/26 18:16:02 mickey Exp $ */
+/* $OpenBSD: emuxki.c,v 1.7 2001/11/29 13:05:30 ho Exp $ */
/* $NetBSD: emuxki.c,v 1.1 2001/10/17 18:39:41 jdolecek Exp $ */
/*-
@@ -834,8 +834,8 @@ emuxki_mem_new(struct emuxki_softc *sc, int ptbidx,
return (NULL);
mem->ptbidx = ptbidx;
- if ((mem->dmamem = emuxki_dmamem_alloc(sc->sc_dmat, size, EMU_DMA_ALIGN,
- EMU_DMAMEM_NSEG, type, flags)) == NULL) {
+ if ((mem->dmamem = emuxki_dmamem_alloc(sc->sc_dmat, size,
+ EMU_DMA_ALIGN, EMU_DMAMEM_NSEG, type, flags)) == NULL) {
free(mem, type);
return (NULL);
}
@@ -1320,7 +1320,7 @@ emuxki_voice_new(struct emuxki_softc *sc, u_int8_t use)
void
emuxki_voice_delete(struct emuxki_voice *voice)
{
- struct emuxki_softc *sc;
+ struct emuxki_softc *sc = voice->sc;
struct emuxki_voice *lvoice;
int s;