aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-09-14 19:02:19 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2017-10-07 12:10:34 +0800
commite781c17c22fdd390e54b972c010acdc862ac66df (patch)
treeae4dc900a226feef58a4c856d1a175e78157fd9c /crypto
parent2fd23f2b9016dc5391f258a462ae0a334a3c9f86 (diff)
downloadlinux-stericsson-e781c17c22fdd390e54b972c010acdc862ac66df.tar.gz
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>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/algboss.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/algboss.c b/crypto/algboss.c
index 960d8548171b..5e6df2a087fa 100644
--- a/crypto/algboss.c
+++ b/crypto/algboss.c
@@ -122,7 +122,6 @@ static int cryptomgr_schedule_probe(struct crypto_larval *larval)
int notnum = 0;
name = ++p;
- len = 0;
for (; isalnum(*p) || *p == '-' || *p == '_'; p++)
notnum |= !isdigit(*p);