Removing a QoS entry when destroying a flow calls abort() on
failure, killing the application. Clang reports the following
"goto error" as unreachable.

The abort() looks like leftover debug code: it is the only one in
the driver, and the identical RSS case below reports the same
failure through the error path instead.

Remove it so the failure is reported to the caller with
rte_flow_error_set() like every other error in this function.

Fixes: 56c1817d532e ("net/dpaa2: refactor flow engine")
Cc: [email protected]

Signed-off-by: Stephen Hemminger <[email protected]>
---
 drivers/net/dpaa2/dpaa2_flow.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/dpaa2/dpaa2_flow.c b/drivers/net/dpaa2/dpaa2_flow.c
index 979ab4cae0..cf2d66ed26 100644
--- a/drivers/net/dpaa2/dpaa2_flow.c
+++ b/drivers/net/dpaa2/dpaa2_flow.c
@@ -5398,7 +5398,6 @@ dpaa2_flow_destroy(struct rte_eth_dev *dev, struct 
rte_flow *_flow,
                                DPAA2_PMD_ERR("Remove FS QoS entry failed");
                                dpaa2_flow_qos_entry_log("Delete failed", flow,
                                                         -1);
-                               abort();
                                goto error;
                        }
                }
-- 
2.53.0

Reply via email to