Skip to content

Commit f81e5ca

Browse files
Colin Ian Kingdavem330
authored andcommitted
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>
1 parent e52cfb6 commit f81e5ca

File tree

1 file changed

+0
-2
lines changed
  • drivers/net/ethernet/aquantia/atlantic

1 file changed

+0
-2
lines changed

drivers/net/ethernet/aquantia/atlantic/aq_ring.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,6 @@ int aq_ring_rx_fill(struct aq_ring_s *self)
304304

305305
buff = NULL;
306306
}
307-
if (err < 0)
308-
goto err_exit;
309307

310308
err_exit:
311309
if (err < 0) {

0 commit comments

Comments
 (0)