Clang reports the continue after rte_panic() as unreachable.
rte_panic() does not return, so the statement can never execute.

Remove it and the now redundant braces.

Signed-off-by: Stephen Hemminger <[email protected]>
---
 examples/eventdev_pipeline/main.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/examples/eventdev_pipeline/main.c 
b/examples/eventdev_pipeline/main.c
index 00f409a07b..2c9b64655d 100644
--- a/examples/eventdev_pipeline/main.c
+++ b/examples/eventdev_pipeline/main.c
@@ -437,11 +437,9 @@ main(int argc, char **argv)
 
                err = rte_eal_remote_launch(fdata->cap.worker,
                                &worker_data[worker_idx], lcore_id);
-               if (err) {
+               if (err)
                        rte_panic("Failed to launch worker on core %d\n",
                                        lcore_id);
-                       continue;
-               }
                if (fdata->worker_core[lcore_id])
                        worker_idx++;
        }
-- 
2.53.0

Reply via email to