Skip to content

Commit

Permalink
net/avp: remove always true condition
Browse files Browse the repository at this point in the history
[ upstream commit e6b8750 ]

There is already a break above for the case "count >= 1", so at this
stage 'count' should be always '0'.

Fixes: 1a85922 ("net/avp: add device configuration")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Steven Webster <steven.webster@windriver.com>
  • Loading branch information
Ferruh Yigit authored and cpaelzer committed Feb 2, 2021
1 parent 6c0a0f5 commit 3d155a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/avp/avp_ethdev.c
Expand Up @@ -269,7 +269,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;
Expand Down

0 comments on commit 3d155a9

Please sign in to comment.