net: ethernet: aquantia: remove redundant err check
authorColin Ian King <colin.king@canonical.com>
Fri, 27 Jan 2017 14:43:46 +0000 (14:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Jan 2017 23:24:00 +0000 (18:24 -0500)
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>
drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c

index afcecdbf124c4c51d5a01d0144cfa31eb05e2add..da4bc09dac519c23135f51dccec28155dda54b96 100644 (file)
@@ -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;