diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-01-27 15:00:25 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-29 18:24:00 -0500 |
commit | f81e5ca9155e8b4527662aa66ba984f58257ccdb (patch) | |
tree | 85b80ace3dc01e98234c62d5c3e522273a44a804 /drivers/net/ethernet/aquantia | |
parent | e52cfb63a0ba55bc962e61b5af9be166f08827ae (diff) |
net: ethernet: aquantia: remove another redundant err check
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>
Diffstat (limited to 'drivers/net/ethernet/aquantia')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/aq_ring.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_ring.c b/drivers/net/ethernet/aquantia/atlantic/aq_ring.c index b517b2670a71..817c145520c8 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) { |