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 <step...@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