mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 18:11:56 +00:00
net: ethernet: aquantia: remove redundant err check
The check on err < 0 is redundant and can be removed. Detected by CoverityScan, CID#1398321 ("Logically Dead Code") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c51dfff8eb
commit
e52cfb63a0
@ -145,8 +145,6 @@ int aq_pci_func_init(struct aq_pci_func_s *self)
|
||||
}
|
||||
}
|
||||
|
||||
if (err < 0)
|
||||
goto err_exit;
|
||||
for (i = 0; i < self->aq_hw_caps.msix_irqs; i++)
|
||||
self->msix_entry[i].entry = i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user