net/i40e: fix unused variable issue
PATCH 1/1 net/i40e: fix unused variable issue
Fix issue where I40E_SUCCESS was assigned to a return variable but was overwritten before it could be used.
Coverity issue: 501831
Fixes baf1d4cd8aed ("net/i40e: upgrade AQ command of MAC/VLAN remove")
Signed-off-by John McNamara <[email protected]>
--- drivers/net/intel/i40e/i40e_ethdev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/net/intel/i40e/i40e_ethdev.c +1 -3
@@ -7243,9 +7243,7 @@ i40e_remove_macvlan_filters(struct i40e_vsi *vsi,if (ret !=I40E_SUCCESS ) {/* Do not report as an error when firmware returns ENOENT */ -if (aq_status ==I40E_AQ_RC_ENOENT ) { - ret =I40E_SUCCESS ; - }else { +if (aq_status !=I40E_AQ_RC_ENOENT ) {PMD_DRV_LOG (ERR ,"Failed to remove macvlan filter" );return ret; }
Signature · 1 line
2.51.0
Quoted 9 lines · John McNamara
Fix issue where
I40E_SUCCESSwas assigned to a return variable but was overwritten before it could be used.Coverity issue: 501831
Fixes baf1d4cd8aed ("net/i40e: upgrade AQ command of MAC/VLAN remove")Signed-off-by John McNamara <[email protected]>---
Acked-by Bruce Richardson <[email protected]>
Applied to dpdk-net-net-intel.
Thanks,
/Bruce