Skip to content

Commit

Permalink
net: ethernet: aquantia: remove another redundant err check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and David S. Miller committed Jan 29, 2017
1 parent e52cfb6 commit f81e5ca
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/aquantia/atlantic/aq_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f81e5ca

Please sign in to comment.