ALSA: fireworks: Remove meaningless mutex_destroy()
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 4 Jun 2014 06:25:36 +0000 (15:25 +0900)
committerTakashi Iwai <tiwai@suse.de>
Wed, 4 Jun 2014 12:37:59 +0000 (14:37 +0200)
Currently mutex_destroy() is called in module's cleanup function. But after
cleaned up, this mutex is automatically released. So this function call
is meaningless.

[fixed a typo in changelog by tiwai]

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/fireworks/fireworks.c

index 996fdc44c83c504efa2e2ad28a76895c6598154a..3e2ed8e82cbc49b4699c82ad30776ef8a4300253 100644 (file)
@@ -346,7 +346,6 @@ static void __exit snd_efw_exit(void)
 {
        snd_efw_transaction_unregister();
        driver_unregister(&efw_driver.driver);
-       mutex_destroy(&devices_mutex);
 }
 
 module_init(snd_efw_init);