net: ethernet: aquantia: remove another redundant err check
authorColin Ian King <colin.king@canonical.com>
Fri, 27 Jan 2017 15:00:25 +0000 (15:00 +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#1398318 ("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_ring.c

index b517b2670a719400bb6ad3a212360533b1049ab1..817c145520c8b01bead76c507063ac04204c0879 100644 (file)
@@ -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) {