aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJoel Dahl <joel@FreeBSD.org>2006-01-21 09:05:13 +0000
committerJoel Dahl <joel@FreeBSD.org>2006-01-21 09:05:13 +0000
commit16451fc93a810097d15382a1a5f44ed2a8373d9a (patch)
tree346049a9acdceae8c572a41c857a72942e9f7384 /sys
parentbeee67e1821ac5e099dd65b3ec9a94f9040aa797 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sound/pci/cmi.c2
-rw-r--r--sys/dev/sound/pci/vibes.c3
2 files changed, 0 insertions, 5 deletions
diff --git a/sys/dev/sound/pci/cmi.c b/sys/dev/sound/pci/cmi.c
index d878e452fe581..83e4de835dfe9 100644
--- a/sys/dev/sound/pci/cmi.c
+++ b/sys/dev/sound/pci/cmi.c
@@ -830,12 +830,10 @@ cmi_probe(device_t dev)
static int
cmi_attach(device_t dev)
{
- struct snddev_info *d;
struct sc_info *sc;
u_int32_t data;
char status[SND_STATUSLEN];
- d = device_get_softc(dev);
sc = malloc(sizeof(struct sc_info), M_DEVBUF, M_NOWAIT | M_ZERO);
if (sc == NULL) {
device_printf(dev, "cannot allocate softc\n");
diff --git a/sys/dev/sound/pci/vibes.c b/sys/dev/sound/pci/vibes.c
index dd580acd7fb78..823f5f9a658c2 100644
--- a/sys/dev/sound/pci/vibes.c
+++ b/sys/dev/sound/pci/vibes.c
@@ -712,14 +712,11 @@ sv_probe(device_t dev)
static int
sv_attach(device_t dev) {
- struct snddev_info *d;
struct sc_info *sc;
u_int32_t data;
char status[SND_STATUSLEN];
u_long midi_start, games_start, count, sdmaa, sdmac, ml, mu;
- d = device_get_softc(dev);
-
sc = malloc(sizeof(struct sc_info), M_DEVBUF, M_NOWAIT | M_ZERO);
if (sc == NULL) {
device_printf(dev, "cannot allocate softc");