[PATCH 4/5] um: vector: remove unused len variable/calculation

Johannes Berg johannes at sipsolutions.net
Thu Mar 28 02:06:37 PDT 2024


From: Johannes Berg <johannes.berg at intel.com>

The len variable is unused, so not needed, remove it.

Signed-off-by: Johannes Berg <johannes.berg at intel.com>
---
 arch/um/drivers/vector_kern.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/um/drivers/vector_kern.c b/arch/um/drivers/vector_kern.c
index 63e5f108a6b9..4279793b11b7 100644
--- a/arch/um/drivers/vector_kern.c
+++ b/arch/um/drivers/vector_kern.c
@@ -712,11 +712,9 @@ static struct vector_device *find_device(int n)
 static int vector_parse(char *str, int *index_out, char **str_out,
 			char **error_out)
 {
-	int n, len, err;
+	int n, err;
 	char *start = str;
 
-	len = strlen(str);
-
 	while ((*str != ':') && (strlen(str) > 1))
 		str++;
 	if (*str != ':') {
-- 
2.44.0




More information about the linux-um mailing list