Skip to content
Commit 14b21cec authored by Colin Ian King's avatar Colin Ian King Committed by Jeff Kirsher
Browse files

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: 3df25e4c ("igc: Add interrupt support")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarSasha Neftin <sasha.neftin@intel.com>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 84cfa537
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment