Staging: Drop memory allocation cast
[safe/jmp/linux-2.6] / drivers / staging / vme / bridges / vme_ca91cx42.c
index b9f986b..c35dead 100644 (file)
@@ -941,8 +941,7 @@ int ca91cx42_dma_list_add(struct vme_dma_list *list, struct vme_dma_attr *src,
        dev = list->parent->parent->parent;
 
        /* XXX descriptor must be aligned on 64-bit boundaries */
-       entry = (struct ca91cx42_dma_entry *)
-               kmalloc(sizeof(struct ca91cx42_dma_entry), GFP_KERNEL);
+       entry = kmalloc(sizeof(struct ca91cx42_dma_entry), GFP_KERNEL);
        if (entry == NULL) {
                dev_err(dev, "Failed to allocate memory for dma resource "
                        "structure\n");