[RFC PATCH v2 29/33] app/test-pipeline: remove unnecessary variable

Bruce Richardson bruce.richardson at intel.com
Fri Nov 7 16:50:25 CET 2025


The second definition of a variable called "ret" in the main function is
unnecessary and causes variable shadowing warnings, so just eliminate
it.

Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
 app/test-pipeline/main.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/app/test-pipeline/main.c b/app/test-pipeline/main.c
index 4cc098d7ac..e5efafdf28 100644
--- a/app/test-pipeline/main.c
+++ b/app/test-pipeline/main.c
@@ -89,7 +89,6 @@ main(int argc, char **argv)
 	/* Close ports */
 	for (i = 0; i < app.n_ports; i++) {
 		uint16_t port;
-		int ret;
 
 		port = app.ports[i];
 		printf("Closing port %d...", port);
-- 
2.48.1



More information about the dev mailing list