The IPv4/IPv6 L3 case bumped kg_cfg->num_extracts once in the middle of
the loop, while every other case relies on the final
'kg_cfg->num_extracts = i' that overwrites it. The increment was dead and
misleading; remove it.

Signed-off-by: Maxime Leroy <[email protected]>
---
 drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c 
b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c
index 4df66d8f33..f1d670f213 100644
--- a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c
+++ b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c
@@ -397,7 +397,6 @@ dpaa2_distset_to_dpkg_profile_cfg(
                                        DPKG_EXTRACT_FROM_HDR;
                                kg_cfg->extracts[i].extract.from_hdr.type =
                                        DPKG_FULL_FIELD;
-                               kg_cfg->num_extracts++;
                                i++;
                        break;
 
-- 
2.43.0

Reply via email to