From 76d36759e69f7ed303e8fbf42b46052383f86337 Mon Sep 17 00:00:00 2001
From: Wenkai Lin <linwenkai6@hisilicon.com>
Date: Sat, 23 Jul 2022 16:50:33 +0800
Subject: [PATCH 166/183] uadk: fix size_t usage

The variable is assigned by value from strlen,
its type should be size_t.

Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com>
---
 wd_util.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/wd_util.c b/wd_util.c
index 04a2a5b..349df81 100644
--- a/wd_util.c
+++ b/wd_util.c
@@ -585,7 +585,8 @@ free_numa_dev_num:
 
 static int is_number(const char *str)
 {
-	int len, i;
+	size_t len;
+	int i;
 
 	if (!str)
 		return 0;
-- 
2.27.0

