[PATCH][net-next] net: ethernet: aquantia: remove another redundant err check

From: Colin King
Date: Fri Jan 27 2017 - 10:37:48 EST


From: Colin Ian King <colin.king@xxxxxxxxxxxxx>

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

Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
---
drivers/net/ethernet/aquantia/atlantic/aq_ring.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_ring.c b/drivers/net/ethernet/aquantia/atlantic/aq_ring.c
index b517b26..817c145 100644
--- a/drivers/net/ethernet/aquantia/atlantic/aq_ring.c
+++ b/drivers/net/ethernet/aquantia/atlantic/aq_ring.c
@@ -304,8 +304,6 @@ int aq_ring_rx_fill(struct aq_ring_s *self)

buff = NULL;
}
- if (err < 0)
- goto err_exit;

err_exit:
if (err < 0) {
--
2.10.2