diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-01-27 14:43:46 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-29 18:24:00 -0500 |
commit | e52cfb63a0ba55bc962e61b5af9be166f08827ae (patch) | |
tree | 192068c7249f56acabc4fd689e0d24deac179540 /drivers/net/ethernet | |
parent | c51dfff8eb8acb2a20f10922a514a14272993eb7 (diff) | |
download | linux-e52cfb63a0ba55bc962e61b5af9be166f08827ae.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c b/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c index afcecdbf124c..da4bc09dac51 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c +++ b/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c @@ -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; |