Commit 2caa4982 authored by Johannes Berg's avatar Johannes Berg Committed by Richard Weinberger
Browse files

um: vector: remove unused len variable/calculation



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

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Reviewed-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 584ed2f7
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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 != ':') {