Re: [PATCH 22/25] vme_tsi148: remove casts from void*

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kulikov Vasiliy wrote:
> Remove unnesessary casts from void*.
>
> Signed-off-by: Kulikov Vasiliy <segooon@xxxxxxxxx>
>   

Seems ok, cheers,

Signed-off-by: Martyn Welch <martyn.welch@xxxxxx>


> ---
>  drivers/staging/vme/bridges/vme_tsi148.c |   10 +++++-----
>  1 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/staging/vme/bridges/vme_tsi148.c b/drivers/staging/vme/bridges/vme_tsi148.c
> index abe88a3..4685a31 100644
> --- a/drivers/staging/vme/bridges/vme_tsi148.c
> +++ b/drivers/staging/vme/bridges/vme_tsi148.c
> @@ -1649,7 +1649,7 @@ int tsi148_dma_list_add(struct vme_dma_list *list, struct vme_dma_attr *src,
>  	/* Fill out source part */
>  	switch (src->type) {
>  	case VME_DMA_PATTERN:
> -		pattern_attr = (struct vme_dma_pattern *)src->private;
> +		pattern_attr = src->private;
>  
>  		entry->descriptor.dsal = pattern_attr->pattern;
>  		entry->descriptor.dsat = TSI148_LCSR_DSAT_TYP_PAT;
> @@ -1663,7 +1663,7 @@ int tsi148_dma_list_add(struct vme_dma_list *list, struct vme_dma_attr *src,
>  
>  		break;
>  	case VME_DMA_PCI:
> -		pci_attr = (struct vme_dma_pci *)src->private;
> +		pci_attr = src->private;
>  
>  		reg_split((unsigned long long)pci_attr->address, &address_high,
>  			&address_low);
> @@ -1672,7 +1672,7 @@ int tsi148_dma_list_add(struct vme_dma_list *list, struct vme_dma_attr *src,
>  		entry->descriptor.dsat = TSI148_LCSR_DSAT_TYP_PCI;
>  		break;
>  	case VME_DMA_VME:
> -		vme_attr = (struct vme_dma_vme *)src->private;
> +		vme_attr = src->private;
>  
>  		reg_split((unsigned long long)vme_attr->address, &address_high,
>  			&address_low);
> @@ -1701,7 +1701,7 @@ int tsi148_dma_list_add(struct vme_dma_list *list, struct vme_dma_attr *src,
>  	/* Fill out destination part */
>  	switch (dest->type) {
>  	case VME_DMA_PCI:
> -		pci_attr = (struct vme_dma_pci *)dest->private;
> +		pci_attr = dest->private;
>  
>  		reg_split((unsigned long long)pci_attr->address, &address_high,
>  			&address_low);
> @@ -1710,7 +1710,7 @@ int tsi148_dma_list_add(struct vme_dma_list *list, struct vme_dma_attr *src,
>  		entry->descriptor.ddat = TSI148_LCSR_DDAT_TYP_PCI;
>  		break;
>  	case VME_DMA_VME:
> -		vme_attr = (struct vme_dma_vme *)dest->private;
> +		vme_attr = dest->private;
>  
>  		reg_split((unsigned long long)vme_attr->address, &address_high,
>  			&address_low);
>   


-- 
Martyn Welch (Principal Software Engineer)   |   Registered in England and
GE Intelligent Platforms                     |   Wales (3828642) at 100
T +44(0)127322748                            |   Barbirolli Square, Manchester,
E martyn.welch@xxxxxx                        |   M2 3AB  VAT:GB 927559189

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux