Staging: wlags49_h2: wl_pci: remove casts from void*
Remove unnesessary casts from void*. Signed-off-by: Kulikov Vasiliy <segooon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
82942ca2b5
commit
2f72aee189
|
@ -465,7 +465,7 @@ void __devexit wl_pci_remove(struct pci_dev *pdev)
|
||||||
free_irq( dev->irq, dev );
|
free_irq( dev->irq, dev );
|
||||||
|
|
||||||
#ifdef ENABLE_DMA
|
#ifdef ENABLE_DMA
|
||||||
wl_pci_dma_free( pdev, (struct wl_private *)dev->priv );
|
wl_pci_dma_free( pdev, dev->priv );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
wl_device_dealloc( dev );
|
wl_device_dealloc( dev );
|
||||||
|
@ -534,7 +534,7 @@ int wl_pci_setup( struct pci_dev *pdev )
|
||||||
|
|
||||||
#ifdef ENABLE_DMA
|
#ifdef ENABLE_DMA
|
||||||
/* Allocate DMA Descriptors */
|
/* Allocate DMA Descriptors */
|
||||||
if( wl_pci_dma_alloc( pdev, (struct wl_private *)dev->priv ) < 0 ) {
|
if( wl_pci_dma_alloc( pdev, dev->priv ) < 0 ) {
|
||||||
DBG_ERROR( DbgInfo, "Could not allocate DMA descriptor memory!!!\n" );
|
DBG_ERROR( DbgInfo, "Could not allocate DMA descriptor memory!!!\n" );
|
||||||
DBG_LEAVE( DbgInfo );
|
DBG_LEAVE( DbgInfo );
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
@ -570,7 +570,7 @@ int wl_pci_setup( struct pci_dev *pdev )
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Make sure interrupts are enabled properly for CardBus */
|
/* Make sure interrupts are enabled properly for CardBus */
|
||||||
lp = (struct wl_private *)dev->priv;
|
lp = dev->priv;
|
||||||
|
|
||||||
if( lp->hcfCtx.IFB_BusType == CFG_NIC_BUS_TYPE_CARDBUS ||
|
if( lp->hcfCtx.IFB_BusType == CFG_NIC_BUS_TYPE_CARDBUS ||
|
||||||
lp->hcfCtx.IFB_BusType == CFG_NIC_BUS_TYPE_PCI ) {
|
lp->hcfCtx.IFB_BusType == CFG_NIC_BUS_TYPE_PCI ) {
|
||||||
|
|
Reference in New Issue