On Tue, Apr 07, 2026 at 02:47:30PM +0300, Sergei Iashin wrote:
> The non-leaf validation in iavf_node_param_check() unconditionally
> rejects a non-NULL wfq_weight_mode pointer at the top of the block.
> The else-if clause below re-tests the same pointer, which is guaranteed
> NULL at that point, making the branch unreachable dead code.
>
> Remove the dead else-if block. No functional change.
>
> Fixes: 44d0a720a538 ("net/iavf: query QoS capabilities and set queue TC
> mapping")
> Cc: [email protected]
> Cc: [email protected]
>
> Signed-off-by: Sergei Iashin <[email protected]>
> ---
> drivers/net/intel/iavf/iavf_tm.c | 6 ------
> 1 file changed, 6 deletions(-)
Acked-by: Bruce Richardson <[email protected]>
Applied to dpdk-next-net-intel
Thanks,
/Bruce