diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-04-07 18:29:46 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-04-07 18:29:46 +0200 |
commit | d05468b72a32ec45aefb48caa00bd99350b9cf86 (patch) | |
tree | 4b82d42522a19f213cd2f6b0de5a9b587b9bd0cf /sound/core | |
parent | 68c7ccb8f85801655aa681391dc0ee037a2b66d4 (diff) | |
download | op-kernel-dev-d05468b72a32ec45aefb48caa00bd99350b9cf86.zip op-kernel-dev-d05468b72a32ec45aefb48caa00bd99350b9cf86.tar.gz |
ALSA: pcm - Remove BKL from async callback
It's simply calling fasync_helper().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/pcm_native.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index 8728876..cadba30 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c @@ -3303,18 +3303,13 @@ static int snd_pcm_fasync(int fd, struct file * file, int on) struct snd_pcm_file * pcm_file; struct snd_pcm_substream *substream; struct snd_pcm_runtime *runtime; - int err = -ENXIO; - lock_kernel(); pcm_file = file->private_data; substream = pcm_file->substream; if (PCM_RUNTIME_CHECK(substream)) - goto out; + return -ENXIO; runtime = substream->runtime; - err = fasync_helper(fd, file, on, &runtime->fasync); -out: - unlock_kernel(); - return err; + return fasync_helper(fd, file, on, &runtime->fasync); } /* |