All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH] [RESEND] [16/29] emu10k1_main.c - vfree() checking
@ 2005-01-04 23:17 jlamanna
  0 siblings, 0 replies; only message in thread
From: jlamanna @ 2005-01-04 23:17 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 740 bytes --]

emu10k1_main.c vfree() checking cleanups.

Signed-off by: James Lamanna <jlamanna@gmail.com>

 emu10k1_main.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)


--- linux-2.6.10-vanilla/sound/pci/emu10k1/emu10k1_main.c	2004-12-24 13:35:39.000000000 -0800
+++ linux-2.6.10/sound/pci/emu10k1/emu10k1_main.c	2005-01-04 11:20:41.882733312 -0800
@@ -553,10 +553,8 @@
 		snd_dma_free_pages(&emu->silent_page);
 	if (emu->ptb_pages.area)
 		snd_dma_free_pages(&emu->ptb_pages);
-	if (emu->page_ptr_table)
-		vfree(emu->page_ptr_table);
-	if (emu->page_addr_table)
-		vfree(emu->page_addr_table);
+	vfree(emu->page_ptr_table);
+	vfree(emu->page_addr_table);
 	if (emu->irq >= 0)
 		free_irq(emu->irq, (void *)emu);
 	if (emu->port)


[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-04 23:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-04 23:17 [KJ] [PATCH] [RESEND] [16/29] emu10k1_main.c - vfree() checking jlamanna

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.