diff options
| author | Stephen Hemminger <[email protected]> | 2024-11-12 09:43:53 -0800 |
|---|---|---|
| committer | Jerin Jacob <[email protected]> | 2024-11-18 07:35:32 +0100 |
| commit | 3868c0ce5ce83eacc9611cc4a83d20120ae3442e (patch) | |
| tree | 2a04e19c03720382285ea1c582cdaee32659d643 | |
| parent | 07e3bebf3c93750c52ed9be87edd212fbc22da0a (diff) | |
net/bnx2x: remove dead conditional
The second if test here is impossible because it contradicts
previous line.
Coverity issue: 384428
Fixes: 540a211084a7 ("bnx2x: driver core")
Cc: [email protected]
Signed-off-by: Stephen Hemminger <[email protected]>
| -rw-r--r-- | drivers/net/bnx2x/bnx2x_stats.c | 3 |
1 files changed, 0 insertions, 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++); |
