aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2006-06-07 12:12:31 -0400
committerJaroslav Kysela <perex@suse.cz>2006-06-22 15:34:14 -0400
commit3758d4e601552a3d9066913a31ccb8dc6a25ee69 (patch)
tree715613a222b5d6abd47973a225191eecbcf11cc4
parent688956f23bdbfb1c3551bfafc819f989b36bb8ae (diff)
[ALSA] Remove bogus check of mmap_count in snd_pcm_release()
Removed a bogus check of mmap_count in snd_pcm_release(). This is no longer true for the shared streams. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/core/pcm_native.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index 9e495244eee2..439f047929e1 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -2205,7 +2205,6 @@ static int snd_pcm_release(struct inode *inode, struct file *file)
2205 pcm_file = file->private_data; 2205 pcm_file = file->private_data;
2206 substream = pcm_file->substream; 2206 substream = pcm_file->substream;
2207 snd_assert(substream != NULL, return -ENXIO); 2207 snd_assert(substream != NULL, return -ENXIO);
2208 snd_assert(!atomic_read(&substream->mmap_count), );
2209 pcm = substream->pcm; 2208 pcm = substream->pcm;
2210 fasync_helper(-1, file, 0, &substream->runtime->fasync); 2209 fasync_helper(-1, file, 0, &substream->runtime->fasync);
2211 mutex_lock(&pcm->open_mutex); 2210 mutex_lock(&pcm->open_mutex);