Skip to content

Commit 2caa498

Browse files
jmberg-intelrichardweinberger
authored andcommitted
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>
1 parent 584ed2f commit 2caa498

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

arch/um/drivers/vector_kern.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -712,11 +712,9 @@ static struct vector_device *find_device(int n)
712712
static int vector_parse(char *str, int *index_out, char **str_out,
713713
char **error_out)
714714
{
715-
int n, len, err;
715+
int n, err;
716716
char *start = str;
717717

718-
len = strlen(str);
719-
720718
while ((*str != ':') && (strlen(str) > 1))
721719
str++;
722720
if (*str != ':') {

0 commit comments

Comments
 (0)