From: Colin Ian King Date: Fri, 27 Jan 2017 14:43:46 +0000 (+0000) Subject: net: ethernet: aquantia: remove redundant err check X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e52cfb63a0ba55bc962e61b5af9be166f08827ae;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: David S. Miller --- 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;