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 <[email protected]> Reviewed-by: Tiwei Bie <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent 584ed2f commit 2caa498

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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)