tree 3c0a4cbe19033c6af32a53fe453f5cdba77c08c6
parent befdf316eaba02ed52284fb78a8027ff35c6a736
author Takashi Iwai <[EMAIL PROTECTED]> Tue, 23 Aug 2005 11:11:03 +0200
committer Jaroslav Kysela <[EMAIL PROTECTED]> Tue, 30 Aug 2005 08:47:07 +0200

[ALSA] Fix compilation without CONFIG_PROC_FS

Memalloc module
Fix an error when built without CONFIG_PROC_FS.

Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>

 sound/core/memalloc.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/core/memalloc.c b/sound/core/memalloc.c
--- 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to