aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_main.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-10-19 08:48:11 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-11-07 12:47:01 -0500
commit84cfa53740e137a7ead9aab26e1ad0704fe21caa (patch)
treebe6739e304a8930781298149f86981c7c0ba6adc /drivers/net/ethernet/intel/igc/igc_main.c
parentdda458d28567d0bb99ad67180a72aaff2e0adc3b (diff)
igc: Remove set but not used variable 'pci_using_dac'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/intel/igc/igc_main.c: In function 'igc_probe': drivers/net/ethernet/intel/igc/igc_main.c:3535:11: warning: variable 'pci_using_dac' set but not used [-Wunused-but-set-variable] It never used since introduction in commit d89f88419f99 ("igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Sasha Neftin <sasha.neftin@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
-rw-r--r--drivers/net/ethernet/intel/igc/igc_main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c
index 615a5fcd5a00..529c3e952621 100644
--- a/drivers/net/ethernet/intel/igc/igc_main.c
+++ b/drivers/net/ethernet/intel/igc/igc_main.c
@@ -3532,19 +3532,16 @@ static int igc_probe(struct pci_dev *pdev,
3532 struct net_device *netdev; 3532 struct net_device *netdev;
3533 struct igc_hw *hw; 3533 struct igc_hw *hw;
3534 const struct igc_info *ei = igc_info_tbl[ent->driver_data]; 3534 const struct igc_info *ei = igc_info_tbl[ent->driver_data];
3535 int err, pci_using_dac; 3535 int err;
3536 3536
3537 err = pci_enable_device_mem(pdev); 3537 err = pci_enable_device_mem(pdev);
3538 if (err) 3538 if (err)
3539 return err; 3539 return err;
3540 3540
3541 pci_using_dac = 0;
3542 err = dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)); 3541 err = dma_set_mask(&pdev->dev, DMA_BIT_MASK(64));
3543 if (!err) { 3542 if (!err) {
3544 err = dma_set_coherent_mask(&pdev->dev, 3543 err = dma_set_coherent_mask(&pdev->dev,
3545 DMA_BIT_MASK(64)); 3544 DMA_BIT_MASK(64));
3546 if (!err)
3547 pci_using_dac = 1;
3548 } else { 3545 } else {
3549 err = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); 3546 err = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32));
3550 if (err) { 3547 if (err) {