[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170127150025.18886-1-colin.king@canonical.com>
Date: Fri, 27 Jan 2017 15:00:25 +0000
From: Colin King <colin.king@...onical.com>
To: "David S . Miller" <davem@...emloft.net>,
Pavel Belous <Pavel.Belous@...antia.com>,
Alexander Loktionov <Alexander.Loktionov@...antia.com>,
Dmitry Bezrukov <Dmitry.Bezrukov@...antia.com>,
David VomLehn <vomlehn@...as.net>, netdev@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH][net-next] net: ethernet: aquantia: remove another redundant err check
From: Colin Ian King <colin.king@...onical.com>
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@...onical.com>
---
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
Powered by blists - more mailing lists