Skip to contentSkip to conversation

net: ethernet: aquantia: remove redundant err check

PATCH Applied Colin King 2 participants 2 messages Jan 27, 2017 – Jan 29, 2017

Subsystems (4)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 net: ethernet: aquantia: remove redundant err check

From: Colin Ian King <[email protected]>

The check on err < 0 is redundant and can be removed. Detected by CoverityScan, CID#1398321 ("Logically Dead Code")

---
 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c +0 -2
index afcecdb..da4bc09 100644
@@ -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;
 
Signature · 1 line
2.10.2