[ALSA] Fix disconnection of proc interface
[deliverable/linux.git] / sound / core / info_oss.c
index bb2c40d0ab66cd6f890ad86ac713246c561b3c7e..3ebc34919c76fc746a12643135b73d9c0f5b2435 100644 (file)
@@ -131,10 +131,8 @@ int snd_info_minor_register(void)
 
 int snd_info_minor_unregister(void)
 {
-       if (snd_sndstat_proc_entry) {
-               snd_info_unregister(snd_sndstat_proc_entry);
-               snd_sndstat_proc_entry = NULL;
-       }
+       snd_info_free_entry(snd_sndstat_proc_entry);
+       snd_sndstat_proc_entry = NULL;
        return 0;
 }
 
This page took 0.035869 seconds and 5 git commands to generate.