]> git.baikalelectronics.ru Git - kernel.git/commit
igc: fix error return handling from call to netif_set_real_num_tx_queues
authorColin Ian King <colin.king@canonical.com>
Fri, 19 Oct 2018 18:16:15 +0000 (19:16 +0100)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 7 Nov 2018 17:47:01 +0000 (09:47 -0800)
commit5d529d55e90aece39054f4cc60eabd7d943a4252
tree3f62155ccef0c053a09ce3136168e7b603a21acc
parentda59cf29a49da7c5b9729fcbef4f90c722fea31d
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: 1a8553cfd6c8 ("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>
drivers/net/ethernet/intel/igc/igc_main.c