File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
drivers/net/ethernet/qlogic Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -3750,7 +3750,7 @@ static int ql3xxx_probe(struct pci_dev *pdev,
3750
3750
struct net_device * ndev = NULL ;
3751
3751
struct ql3_adapter * qdev = NULL ;
3752
3752
static int cards_found ;
3753
- int pci_using_dac , err ;
3753
+ int err ;
3754
3754
3755
3755
err = pci_enable_device (pdev );
3756
3756
if (err ) {
@@ -3766,11 +3766,7 @@ static int ql3xxx_probe(struct pci_dev *pdev,
3766
3766
3767
3767
pci_set_master (pdev );
3768
3768
3769
- if (!dma_set_mask_and_coherent (& pdev -> dev , DMA_BIT_MASK (64 )))
3770
- pci_using_dac = 1 ;
3771
- else if (!(err = dma_set_mask_and_coherent (& pdev -> dev , DMA_BIT_MASK (32 ))))
3772
- pci_using_dac = 0 ;
3773
-
3769
+ err = dma_set_mask_and_coherent (& pdev -> dev , DMA_BIT_MASK (64 ));
3774
3770
if (err ) {
3775
3771
pr_err ("%s no usable DMA configuration\n" , pci_name (pdev ));
3776
3772
goto err_out_free_regions ;
@@ -3797,8 +3793,7 @@ static int ql3xxx_probe(struct pci_dev *pdev,
3797
3793
3798
3794
qdev -> msg_enable = netif_msg_init (debug , default_msg );
3799
3795
3800
- if (pci_using_dac )
3801
- ndev -> features |= NETIF_F_HIGHDMA ;
3796
+ ndev -> features |= NETIF_F_HIGHDMA ;
3802
3797
if (qdev -> device_id == QL3032_DEVICE_ID )
3803
3798
ndev -> features |= NETIF_F_IP_CSUM | NETIF_F_SG ;
3804
3799
You can’t perform that action at this time.
0 commit comments