net/bnx2x: fix warnings from invalid assert
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 19 Jun 2019 18:22:16 +0000 (11:22 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 24 Jun 2019 11:24:24 +0000 (12:24 +0100)
This driver had a bogus assert which could never happen.
This triggers "expression is always false warnings" with some
compilers which causes build failure.
Just remove it.

Fixes: 6041aa619f9a ("net/bnx2x: fix poll link status")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Rasesh Mody <rmody@marvell.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
drivers/net/bnx2x/bnx2x_ethdev.c

index 45c6c36..0ee35e4 100644 (file)
@@ -150,7 +150,6 @@ static void bnx2x_periodic_start(void *param)
                if (ret) {
                        PMD_DRV_LOG(ERR, sc, "Unable to start periodic"
                                             " timer rc %d", ret);
-                       assert(false && "Unable to start periodic timer");
                }
        }
 }