* [PATCH][net-next] net: ethernet: aquantia: remove another redundant err check
@ 2017-01-27 15:00 Colin King
2017-01-29 23:24 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Colin King @ 2017-01-27 15:00 UTC (permalink / raw)
To: David S . Miller, Pavel Belous, Alexander Loktionov,
Dmitry Bezrukov, David VomLehn, netdev
Cc: kernel-janitors, linux-kernel
From: Colin Ian King <colin.king@canonical.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@canonical.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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH][net-next] net: ethernet: aquantia: remove another redundant err check
2017-01-27 15:00 [PATCH][net-next] net: ethernet: aquantia: remove another redundant err check Colin King
@ 2017-01-29 23:24 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-01-29 23:24 UTC (permalink / raw)
To: colin.king
Cc: Pavel.Belous, Alexander.Loktionov, Dmitry.Bezrukov, vomlehn,
netdev, kernel-janitors, linux-kernel
From: Colin King <colin.king@canonical.com>
Date: Fri, 27 Jan 2017 15:00:25 +0000
> From: Colin Ian King <colin.king@canonical.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@canonical.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-29 23:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-27 15:00 [PATCH][net-next] net: ethernet: aquantia: remove another redundant err check Colin King
2017-01-29 23:24 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).