changeset 19068:59d10ceb72c8

drops casts from void * on malloc/calloc from vidix/
author reynaldo
date Thu, 13 Jul 2006 21:22:56 +0000
parents 920a210b7fdc
children 94b9bda83a74
files vidix/drivers/nvidia_vid.c vidix/drivers/savage_vid.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/drivers/nvidia_vid.c	Thu Jul 13 21:06:33 2006 +0000
+++ b/vidix/drivers/nvidia_vid.c	Thu Jul 13 21:22:56 2006 +0000
@@ -704,7 +704,7 @@
       
 int vixInit(void){
 	int mtrr;
-  info = (rivatv_info*)calloc(1,sizeof(rivatv_info));
+  info = calloc(1,sizeof(rivatv_info));
   info->control_base = map_phys_mem(pci_info.base0, 0x00C00000 + 0x00008000);
   info->chip.arch =  nvidia_card_ids[find_chip(pci_info.device)].arch;  
   printf("[nvidia_vid] arch %x register base %p\n",info->chip.arch,info->control_base);
--- a/vidix/drivers/savage_vid.c	Thu Jul 13 21:06:33 2006 +0000
+++ b/vidix/drivers/savage_vid.c	Thu Jul 13 21:22:56 2006 +0000
@@ -873,7 +873,7 @@
 	fprintf(stderr, "vixInit enter \n");
 //	//getc(stdin);
 	
-  info = (savage_info*)calloc(1,sizeof(savage_info));
+  info = calloc(1,sizeof(savage_info));
   
 
   /* need this if we want direct outb and inb access? */