Page MenuHomeFreeBSD

D59077.diff
No OneTemporary

D59077.diff

diff --git a/sys/dev/sound/pcm/mixer.c b/sys/dev/sound/pcm/mixer.c
--- a/sys/dev/sound/pcm/mixer.c
+++ b/sys/dev/sound/pcm/mixer.c
@@ -519,8 +519,6 @@
mixer_delete(struct snd_mixer *m)
{
KASSERT(m != NULL, ("NULL snd_mixer"));
- KASSERT(m->type == MIXER_TYPE_SECONDARY,
- ("%s(): illegal mixer type=%d", __func__, m->type));
/* mixer uninit can sleep --hps */
@@ -633,11 +631,7 @@
/* mixer uninit can sleep --hps */
- MIXER_UNINIT(m);
-
- if (m->type == MIXER_TYPE_SECONDARY)
- mtx_destroy(m->lock);
- kobj_delete((kobj_t)m, M_DEVBUF);
+ mixer_delete(m);
return 0;
}

File Metadata

Mime Type
text/plain
Expires
Sun, Aug 23, 3:30 AM (17 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37083293
Default Alt Text
D59077.diff (594 B)

Event Timeline