mirror of
https://github.com/torvalds/linux
synced 2024-09-06 18:01:05 +00:00
crypto: algboss - remove redundant setting of len to zero
The variable len is set to zero, never read and then later updated to p - name, so clearly the zero'ing of len is redundant and can be removed. Detected by clang scan-build: " warning: Value stored to 'len' is never read" Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
2fd23f2b90
commit
e781c17c22
|
@ -122,7 +122,6 @@ static int cryptomgr_schedule_probe(struct crypto_larval *larval)
|
||||||
int notnum = 0;
|
int notnum = 0;
|
||||||
|
|
||||||
name = ++p;
|
name = ++p;
|
||||||
len = 0;
|
|
||||||
|
|
||||||
for (; isalnum(*p) || *p == '-' || *p == '_'; p++)
|
for (; isalnum(*p) || *p == '-' || *p == '_'; p++)
|
||||||
notnum |= !isdigit(*p);
|
notnum |= !isdigit(*p);
|
||||||
|
|
Loading…
Reference in a new issue