[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>
This commit is contained in:
parent
688956f23b
commit
3758d4e601
@ -2205,7 +2205,6 @@ static int snd_pcm_release(struct inode *inode, struct file *file)
|
|||||||
pcm_file = file->private_data;
|
pcm_file = file->private_data;
|
||||||
substream = pcm_file->substream;
|
substream = pcm_file->substream;
|
||||||
snd_assert(substream != NULL, return -ENXIO);
|
snd_assert(substream != NULL, return -ENXIO);
|
||||||
snd_assert(!atomic_read(&substream->mmap_count), );
|
|
||||||
pcm = substream->pcm;
|
pcm = substream->pcm;
|
||||||
fasync_helper(-1, file, 0, &substream->runtime->fasync);
|
fasync_helper(-1, file, 0, &substream->runtime->fasync);
|
||||||
mutex_lock(&pcm->open_mutex);
|
mutex_lock(&pcm->open_mutex);
|
||||||
|
Loading…
Reference in New Issue
Block a user