Staging: Drop memory allocation cast
[safe/jmp/linux-2.6] / drivers / staging / vt6655 / device_main.c
index 7020ed4..f690fc2 100644 (file)
@@ -3025,7 +3025,7 @@ int Config_FileOperation(PSDevice pDevice,BOOL fwrite,unsigned char *Parameter)
          goto error1;
        }
 
-buffer = (UCHAR *)kmalloc(1024, GFP_KERNEL);
+buffer = kmalloc(1024, GFP_KERNEL);
 if(buffer==NULL) {
   printk("alllocate mem for file fail?\n");
   result = -1;