diff options
author | ariff <ariff@FreeBSD.org> | 2006-03-22 20:50:04 +0000 |
---|---|---|
committer | ariff <ariff@FreeBSD.org> | 2006-03-22 20:50:04 +0000 |
commit | 835b687c819f406d1062d60af9763f349e0aa403 (patch) | |
tree | 2383fa93defa6f879ffc832ed6a2e382eb6ed099 | |
parent | 4c8759bdd065db49ff63634ee4b1aab7608421be (diff) | |
download | FreeBSD-src-835b687c819f406d1062d60af9763f349e0aa403.zip FreeBSD-src-835b687c819f406d1062d60af9763f349e0aa403.tar.gz |
We shouldn't really care about the return value of mixer_uninit(),
except EBUSY.
-rw-r--r-- | sys/dev/sound/pcm/sound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index 8bebf2a..166cbbe 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -900,7 +900,7 @@ pcm_unregister(device_t dev) } } - if (mixer_uninit(dev)) { + if (mixer_uninit(dev) == EBUSY) { device_printf(dev, "unregister: mixer busy\n"); snd_mtxunlock(d->lock); sndstat_release(); |