From: Stephen Hemminger Date: Wed, 19 Jun 2019 18:22:16 +0000 (-0700) Subject: net/bnx2x: fix warnings from invalid assert X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=19927e56a853d9506d640a59fea7d2ec5ec2f208;p=dpdk.git net/bnx2x: fix warnings from invalid assert 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 Acked-by: Rasesh Mody Acked-by: Morten Brørup --- diff --git a/drivers/net/bnx2x/bnx2x_ethdev.c b/drivers/net/bnx2x/bnx2x_ethdev.c index 45c6c363c0..0ee35e4e4d 100644 --- a/drivers/net/bnx2x/bnx2x_ethdev.c +++ b/drivers/net/bnx2x/bnx2x_ethdev.c @@ -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"); } } }