From: Ferruh Yigit Date: Thu, 19 Nov 2020 11:59:00 +0000 (+0000) Subject: net/avp: remove always true condition X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e6b87501657e681f15b48837fdfcffabc0ed6bef;p=dpdk.git net/avp: remove always true condition There is already a break above for the case "count >= 1", so at this stage 'count' should be always '0'. Fixes: 1a85922369c4 ("net/avp: add device configuration") Cc: stable@dpdk.org Signed-off-by: Ferruh Yigit Acked-by: Steven Webster --- diff --git a/drivers/net/avp/avp_ethdev.c b/drivers/net/avp/avp_ethdev.c index 5f8187b905..f531e03c02 100644 --- a/drivers/net/avp/avp_ethdev.c +++ b/drivers/net/avp/avp_ethdev.c @@ -267,7 +267,7 @@ avp_dev_process_request(struct avp_dev *avp, struct rte_avp_request *request) break; } - if ((count < 1) && (retry == 0)) { + if (retry == 0) { PMD_DRV_LOG(ERR, "Timeout while waiting for a response for %u\n", request->req_id); ret = -ETIME;