Skip to contentSkip to conversation

sis_main.c - vfree() checking cleanups

PATCH New [email protected] 1 participant 1 message Mar 6, 2005 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/9 sis_main.c - vfree() checking cleanups

sis_main.c vfree() checking cleanups.

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

---

 kj-domen/drivers/video/sis/sis_main.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/video/sis/sis_main.c renamed from drivers/video/sis/sis_main.c~vfree-drivers_video_sis_sis_main +1 -1
diff -puN drivers/video/sis/sis_main.c~vfree-drivers_video_sis_sis_main drivers/video/sis/sis_main.c
@@ -5639,7 +5639,7 @@ static void __devexit sisfb_remove(struc
 	/* Unmap */
 	iounmap(ivideo->video_vbase);
 	iounmap(ivideo->mmio_vbase);
-	if(ivideo->bios_abase) vfree(ivideo->bios_abase);
+	vfree(ivideo->bios_abase);
 
 	/* Release mem regions */
 	release_mem_region(ivideo->video_base, ivideo->video_size);

_

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click