From a1f58e62ddb6419f50bfb3ae743d6db39533a42c Mon Sep 17 00:00:00 2001
From: Liulongfang <liulongfang@foxmail.com>
Date: Wed, 23 Feb 2022 10:36:09 +0800
Subject: [PATCH 72/76] uadk/tools: modify uadk benchmark clean code

modify uadk benchmark thread create warning

Signed-off-by: Liulongfang <liulongfang@foxmail.com>
---
 uadk_tool/sec_uadk_benchmark.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/uadk_tool/sec_uadk_benchmark.c b/uadk_tool/sec_uadk_benchmark.c
index 467e621..6eeee12 100644
--- a/uadk_tool/sec_uadk_benchmark.c
+++ b/uadk_tool/sec_uadk_benchmark.c
@@ -1002,7 +1002,7 @@ int sec_uadk_async_threads(struct acc_option *options)
 	for (i = 0; i < g_ctxnum; i++) {
 		threads_args[i].subtype = threads_option.subtype;
 		threads_args[i].td_id = i;
-		ret = pthread_create(&pollid, NULL, sec_uadk_poll, &threads_args[i]);
+		ret = pthread_create(&pollid[i], NULL, sec_uadk_poll, &threads_args[i]);
 		if (ret) {
 			SEC_TST_PRT("Create poll thread fail!\n");
 			goto async_error;
-- 
2.25.1

