[PATCH] net/iavf: remove dead code in TM node parameter check
Bruce Richardson
bruce.richardson at intel.com
Wed Apr 8 18:41:12 CEST 2026
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: ting.xu at intel.com
> Cc: stable at dpdk.org
>
> Signed-off-by: Sergei Iashin <yashin.sergey at gmail.com>
> ---
> drivers/net/intel/iavf/iavf_tm.c | 6 ------
> 1 file changed, 6 deletions(-)
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
Applied to dpdk-next-net-intel
Thanks,
/Bruce
More information about the stable
mailing list