From: Takashi Iwai Date: Tue, 23 Aug 2005 09:11:03 +0000 (+0200) Subject: [ALSA] Fix compilation without CONFIG_PROC_FS X-Git-Tag: v2.6.14-rc1~1029^2~16 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0be4d32bdae5cebc4e6d9dc65886e279aa69d08;p=linux-2.6 [ALSA] Fix compilation without CONFIG_PROC_FS Memalloc module Fix an error when built without CONFIG_PROC_FS. Signed-off-by: Takashi Iwai --- diff --git a/sound/core/memalloc.c b/sound/core/memalloc.c index 371215cd9e..39a54a4155 100644 --- a/sound/core/memalloc.c +++ b/sound/core/memalloc.c @@ -655,8 +655,7 @@ static int __init snd_mem_init(void) static void __exit snd_mem_exit(void) { - if (snd_mem_proc) - remove_proc_entry(SND_MEM_PROC_FILE, NULL); + remove_proc_entry(SND_MEM_PROC_FILE, NULL); free_all_reserved_pages(); if (snd_allocated_pages > 0) printk(KERN_ERR "snd-malloc: Memory leak? pages not freed = %li\n", snd_allocated_pages);