[PATCH] getting rid of all casts of k[cmz]alloc() calls
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / scsi / dc395x.c
index e95b367d09edd739af8e1739a8d9ed2a1b8d20aa..a965ed3548d5583fd2ac56d343b0e8d5a0f64d08 100644 (file)
@@ -4319,7 +4319,7 @@ static int __devinit adapter_sg_tables_alloc(struct AdapterCtlBlk *acb)
 
        dprintkdbg(DBG_1, "Allocate %i pages for SG tables\n", pages);
        while (pages--) {
-               ptr = (struct SGentry *)kmalloc(PAGE_SIZE, GFP_KERNEL);
+               ptr = kmalloc(PAGE_SIZE, GFP_KERNEL);
                if (!ptr) {
                        adapter_sg_tables_free(acb);
                        return 1;