Skip to content

Commit e52cfb6

Browse files
Colin Ian Kingdavem330
authored andcommitted
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>
1 parent c51dfff commit e52cfb6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,6 @@ int aq_pci_func_init(struct aq_pci_func_s *self)
145145
}
146146
}
147147

148-
if (err < 0)
149-
goto err_exit;
150148
for (i = 0; i < self->aq_hw_caps.msix_irqs; i++)
151149
self->msix_entry[i].entry = i;
152150

0 commit comments

Comments
 (0)