diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-08-23 05:11:03 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-08-30 02:47:07 -0400 |
commit | e0be4d32bdae5cebc4e6d9dc65886e279aa69d08 (patch) | |
tree | 3c0a4cbe19033c6af32a53fe453f5cdba77c08c6 /sound/core | |
parent | befdf316eaba02ed52284fb78a8027ff35c6a736 (diff) |
[ALSA] Fix compilation without CONFIG_PROC_FS
Memalloc module
Fix an error when built without CONFIG_PROC_FS.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/memalloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/core/memalloc.c b/sound/core/memalloc.c index 371215cd9e8f..39a54a415528 100644 --- a/sound/core/memalloc.c +++ b/sound/core/memalloc.c | |||
@@ -655,8 +655,7 @@ static int __init snd_mem_init(void) | |||
655 | 655 | ||
656 | static void __exit snd_mem_exit(void) | 656 | static void __exit snd_mem_exit(void) |
657 | { | 657 | { |
658 | if (snd_mem_proc) | 658 | remove_proc_entry(SND_MEM_PROC_FILE, NULL); |
659 | remove_proc_entry(SND_MEM_PROC_FILE, NULL); | ||
660 | free_all_reserved_pages(); | 659 | free_all_reserved_pages(); |
661 | if (snd_allocated_pages > 0) | 660 | if (snd_allocated_pages > 0) |
662 | printk(KERN_ERR "snd-malloc: Memory leak? pages not freed = %li\n", snd_allocated_pages); | 661 | printk(KERN_ERR "snd-malloc: Memory leak? pages not freed = %li\n", snd_allocated_pages); |