ALSA: pcm - Remove BKL from async callback
authorTakashi Iwai <tiwai@suse.de>
Wed, 7 Apr 2010 16:29:46 +0000 (18:29 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 7 Apr 2010 16:29:46 +0000 (18:29 +0200)
It's simply calling fasync_helper().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c

index 87288762403055a3f6f842c70b9e99794956a1cd..cadba3087768cdc828fb9e51a893d809b4856d2d 100644 (file)
@@ -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);
 }
 
 /*
This page took 0.028789 seconds and 5 git commands to generate.