summaryrefslogtreecommitdiff
path: root/arch/um
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2024-03-28 12:06:37 +0300
committerRichard Weinberger <richard@nod.at>2024-04-22 23:29:31 +0300
commit2caa4982ea8ba601faf8313097720f87aafa7ea5 (patch)
tree89c4fc17ea62df4eff3c6db8054eb0d432e1347c /arch/um
parent584ed2f76ff5fe360d87a04d17b6520c7999e06b (diff)
downloadlinux-2caa4982ea8ba601faf8313097720f87aafa7ea5.tar.xz
um: vector: remove unused len variable/calculation
The len variable is unused, so not needed, remove it. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Reviewed-by: Tiwei Bie <tiwei.btw@antgroup.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/drivers/vector_kern.c4
1 files changed, 1 insertions, 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 != ':') {