Original virtual channel return value is overwritten by _clear_cmd().

Fixes: 22b123a36d07 ("net/avf: initialize PMD")
Cc: sta...@dpdk.org

Signed-off-by: Yahui Cao <yahui....@intel.com>
---
 drivers/net/iavf/iavf.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/iavf/iavf.h b/drivers/net/iavf/iavf.h
index bbd4d75d0..b12ad4119 100644
--- a/drivers/net/iavf/iavf.h
+++ b/drivers/net/iavf/iavf.h
@@ -181,7 +181,6 @@ _clear_cmd(struct iavf_info *vf)
 {
        rte_wmb();
        vf->pend_cmd = VIRTCHNL_OP_UNKNOWN;
-       vf->cmd_retval = VIRTCHNL_STATUS_SUCCESS;
 }
 
 /* Check there is pending cmd in execution. If none, set new command. */
-- 
2.17.1

Reply via email to