diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-04-07 12:29:46 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-04-07 12:29:46 -0400 |
commit | d05468b72a32ec45aefb48caa00bd99350b9cf86 (patch) | |
tree | 4b82d42522a19f213cd2f6b0de5a9b587b9bd0cf /sound/core/pcm_native.c | |
parent | 68c7ccb8f85801655aa681391dc0ee037a2b66d4 (diff) |
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/pcm_native.c')
-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 872887624030..cadba3087768 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) | |||
3303 | struct snd_pcm_file * pcm_file; | 3303 | struct snd_pcm_file * pcm_file; |
3304 | struct snd_pcm_substream *substream; | 3304 | struct snd_pcm_substream *substream; |
3305 | struct snd_pcm_runtime *runtime; | 3305 | struct snd_pcm_runtime *runtime; |
3306 | int err = -ENXIO; | ||
3307 | 3306 | ||
3308 | lock_kernel(); | ||
3309 | pcm_file = file->private_data; | 3307 | pcm_file = file->private_data; |
3310 | substream = pcm_file->substream; | 3308 | substream = pcm_file->substream; |
3311 | if (PCM_RUNTIME_CHECK(substream)) | 3309 | if (PCM_RUNTIME_CHECK(substream)) |
3312 | goto out; | 3310 | return -ENXIO; |
3313 | runtime = substream->runtime; | 3311 | runtime = substream->runtime; |
3314 | err = fasync_helper(fd, file, on, &runtime->fasync); | 3312 | return fasync_helper(fd, file, on, &runtime->fasync); |
3315 | out: | ||
3316 | unlock_kernel(); | ||
3317 | return err; | ||
3318 | } | 3313 | } |
3319 | 3314 | ||
3320 | /* | 3315 | /* |