projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
584ed2f
)
um: vector: remove unused len variable/calculation
author
Johannes Berg
<johannes.berg@intel.com>
Thu, 28 Mar 2024 09:06:37 +0000
(10:06 +0100)
committer
Richard Weinberger
<richard@nod.at>
Mon, 22 Apr 2024 20:29:31 +0000
(22:29 +0200)
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>
arch/um/drivers/vector_kern.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/um/drivers/vector_kern.c
b/arch/um/drivers/vector_kern.c
index 63e5f108a6b95f270c87b837e0e2197314896495..4279793b11b71531b898029e3a5e0d86a5b90867 100644
(file)
--- 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 != ':') {