> From: netdev-owner@xxxxxxxxxxxxxxx [mailto:netdev- > owner@xxxxxxxxxxxxxxx] On Behalf Of YueHaibing > Sent: Friday, October 19, 2018 5:48 AM > To: Kirsher, Jeffrey T <jeffrey.t.kirsher@xxxxxxxxx>; David S. Miller > <davem@xxxxxxxxxxxxx>; Neftin, Sasha <sasha.neftin@xxxxxxxxx> > Cc: YueHaibing <yuehaibing@xxxxxxxxxx>; intel-wired-lan@xxxxxxxxxxxxxxxx; > netdev@xxxxxxxxxxxxxxx; kernel-janitors@xxxxxxxxxxxxxxx > Subject: [PATCH net-next] 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@xxxxxxxxxx> > --- > drivers/net/ethernet/intel/igc/igc_main.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > Tested-by: Aaron Brown <aaron.f.brown@xxxxxxxxx>