[PATCH v1] net/i40e: remove dead ENOENT assignment

Bruce Richardson bruce.richardson at intel.com
Thu Mar 12 11:00:42 CET 2026


On Thu, Mar 12, 2026 at 06:19:26PM -0400, Soumyadeep Hore wrote:
> Ignore ENOENT from firmware without rewriting the return value.
> 
> The previous code assigned I40E_SUCCESS to ret in the ENOENT case,
> but that value was never consumed before the next iteration or the
> function return path.
> 
> Replace the positive ENOENT branch with a negative check so the
> control flow stays the same without the unused assignment.
> 
> Coverity issue: 501831
> 
> Signed-off-by: Soumyadeep Hore <soumyadeep.hore at intel.com>
> ---
>  drivers/net/intel/i40e/i40e_ethdev.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
Duplicate of patch [1].

/Bruce

[1] https://patches.dpdk.org/project/dpdk/patch/20260311161955.1833722-1-john.mcnamara@intel.com/


More information about the dev mailing list