Skip to content

Commit

Permalink
[ALSA] Fix compilation without CONFIG_PROC_FS
Browse files Browse the repository at this point in the history
Memalloc module
Fix an error when built without CONFIG_PROC_FS.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Aug 30, 2005
1 parent befdf31 commit e0be4d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sound/core/memalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e0be4d3

Please sign in to comment.