[alsa-devel] [PATCH] wss_lib: remove second mutexes initialization
From: Krzysztof Helt krzysztof.h1@wp.pl
Remove initializations of spinlock and mutexes which are done earlier in snd_wss_new(). The snd_wss_new() is called from snd_wss_create().
Signed-off-by: Krzysztof Helt krzysztof.h1@wp.pl ---
diff -urp linux-alsa/sound/isa/wss/wss_lib.c linux-2.6.26/sound/isa/wss/wss_lib.c --- linux-alsa/sound/isa/wss/wss_lib.c 2008-07-31 20:39:59.000000000 +0200 +++ linux-2.6.26/sound/isa/wss/wss_lib.c 2008-08-03 16:54:01.293267081 +0200 @@ -1866,10 +1866,6 @@ int snd_wss_pcm(struct snd_wss *chip, in if (err < 0) return err;
- spin_lock_init(&chip->reg_lock); - mutex_init(&chip->mce_mutex); - mutex_init(&chip->open_mutex); - snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_wss_playback_ops); snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_wss_capture_ops);
---------------------------------------------------------------------- Tylko dla detektywow! Konkurs na Smaker.pl Kliknij >>> http://link.interia.pl/f1eb1
At Sun, 3 Aug 2008 17:57:21 +0200, Krzysztof Helt wrote:
From: Krzysztof Helt krzysztof.h1@wp.pl
Remove initializations of spinlock and mutexes which are done earlier in snd_wss_new(). The snd_wss_new() is called from snd_wss_create().
Signed-off-by: Krzysztof Helt krzysztof.h1@wp.pl
Applied. Thanks.
Takashi
participants (2)
-
Krzysztof Helt
-
Takashi Iwai