Staging: vme: vme_ca91cx42: remove casts from void*
authorKulikov Vasiliy <segooon@gmail.com>
Tue, 29 Jun 2010 10:16:16 +0000 (14:16 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 8 Jul 2010 20:54:02 +0000 (13:54 -0700)
Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/vme/bridges/vme_ca91cx42.c

index 16cf53e38a744dec8239a5bf1fbb89455d2708d6..06bd793c52b5e82d100e0e855c89e2821d6db29f 100644 (file)
@@ -963,11 +963,11 @@ int ca91cx42_dma_list_add(struct vme_dma_list *list, struct vme_dma_attr *src,
 
        if (dest->type == VME_DMA_VME) {
                entry->descriptor.dctl |= CA91CX42_DCTL_L2V;
-               vme_attr = (struct vme_dma_vme *)dest->private;
-               pci_attr = (struct vme_dma_pci *)src->private;
+               vme_attr = dest->private;
+               pci_attr = src->private;
        } else {
-               vme_attr = (struct vme_dma_vme *)src->private;
-               pci_attr = (struct vme_dma_pci *)dest->private;
+               vme_attr = src->private;
+               pci_attr = dest->private;
        }
 
        /* Check we can do fullfill required attributes */