[alsa-devel] [PATCH 11/12] bebob: Remove meaningless mutex_unlock()

Takashi Sakamoto o-takashi at sakamocchi.jp
Tue May 27 17:14:46 CEST 2014


Currently mutex_unlock() is called in module's cleanup function. But after
cleaned up, this mutex is automatically released. So this function call
is meaningless.

Signed-off-by: Takashi Sakamoto <o-takashi at sakamocchi.jp>
---
 sound/firewire/bebob/bebob.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sound/firewire/bebob/bebob.c b/sound/firewire/bebob/bebob.c
index 0e9d625..fc19c99 100644
--- a/sound/firewire/bebob/bebob.c
+++ b/sound/firewire/bebob/bebob.c
@@ -465,7 +465,6 @@ static void __exit
 snd_bebob_exit(void)
 {
 	driver_unregister(&bebob_driver.driver);
-	mutex_destroy(&devices_mutex);
 }
 
 module_init(snd_bebob_init);
-- 
1.8.3.2



More information about the Alsa-devel mailing list