linux-bl808/drivers/net/ethernet/intel/igc
Colin Ian King 14b21cec85 igc: fix error return handling from call to netif_set_real_num_tx_queues
The call to netif_set_real_num_tx_queues is not assigning the error
return to variable err even though the next line checks err for an
error.  Fix this by adding the missing err assignment.

Detected by CoverityScan, CID#1474551 ("Logically dead code")

Fixes: 3df25e4c1e ("igc: Add interrupt support")
Signed-off-by: Colin Ian King <colin.king@canonical.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>
2018-11-07 09:47:01 -08:00
..
igc.h igc: Add watchdog 2018-10-17 13:58:47 -07:00
igc_base.c igc: Remove set but not used variables 'ctrl_ext, link_mode' 2018-11-07 09:47:01 -08:00
igc_base.h igc: Add code for PHY support 2018-10-17 13:55:18 -07:00
igc_defines.h igc: Add watchdog 2018-10-17 13:58:47 -07:00
igc_hw.h igc: Add watchdog 2018-10-17 13:58:47 -07:00
igc_i225.c igc: Add NVM support 2018-10-17 13:52:00 -07:00
igc_i225.h igc: Add NVM support 2018-10-17 13:52:00 -07:00
igc_mac.c igc: Add setup link functionality 2018-10-17 13:56:55 -07:00
igc_mac.h igc: Add setup link functionality 2018-10-17 13:56:55 -07:00
igc_main.c igc: fix error return handling from call to netif_set_real_num_tx_queues 2018-11-07 09:47:01 -08:00
igc_nvm.c igc: Add NVM support 2018-10-17 13:52:00 -07:00
igc_nvm.h igc: Add NVM support 2018-10-17 13:52:00 -07:00
igc_phy.c igc: Add setup link functionality 2018-10-17 13:56:55 -07:00
igc_phy.h igc: Add setup link functionality 2018-10-17 13:56:55 -07:00
igc_regs.h igc: Add code for PHY support 2018-10-17 13:55:18 -07:00
Makefile igc: Add code for PHY support 2018-10-17 13:55:18 -07:00