[PATCH 1/4] net/bnx2x: remove dead conditional
Stephen Hemminger
stephen at networkplumber.org
Tue Nov 12 18:43:53 CET 2024
The second if test here is impossible because it contradicts
previous line.
Coverity issue: 384428
Fixes: 540a211084a7 ("bnx2x: driver core")
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
drivers/net/bnx2x/bnx2x_stats.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/net/bnx2x/bnx2x_stats.c b/drivers/net/bnx2x/bnx2x_stats.c
index d473c5e7ec..8adbe7e381 100644
--- a/drivers/net/bnx2x/bnx2x_stats.c
+++ b/drivers/net/bnx2x/bnx2x_stats.c
@@ -73,9 +73,6 @@ bnx2x_storm_stats_post(struct bnx2x_softc *sc)
int rc;
if (!sc->stats_pending) {
- if (sc->stats_pending)
- return;
-
sc->fw_stats_req->hdr.drv_stats_counter =
htole16(sc->stats_counter++);
--
2.45.2
More information about the dev
mailing list