Skip to contentSkip to conversation

emu10k1_main.c - vfree() checking

PATCH RESEND Applied [email protected] 1 participant 1 message Jan 4, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 16/29 emu10k1_main.c - vfree() checking

emu10k1_main.c vfree() checking cleanups.

Signed-off by: James Lamanna <[email protected]>

 emu10k1_main.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
sound/pci/emu10k1/emu10k1_main.c +2 -4
@@ -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)

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors