diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-09-14 14:02:19 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-10-07 00:10:34 -0400 |
commit | e781c17c22fdd390e54b972c010acdc862ac66df (patch) | |
tree | ae4dc900a226feef58a4c856d1a175e78157fd9c /crypto | |
parent | 2fd23f2b9016dc5391f258a462ae0a334a3c9f86 (diff) |
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.c | 1 |
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) | |||
122 | int notnum = 0; | 122 | int notnum = 0; |
123 | 123 | ||
124 | name = ++p; | 124 | name = ++p; |
125 | len = 0; | ||
126 | 125 | ||
127 | for (; isalnum(*p) || *p == '-' || *p == '_'; p++) | 126 | for (; isalnum(*p) || *p == '-' || *p == '_'; p++) |
128 | notnum |= !isdigit(*p); | 127 | notnum |= !isdigit(*p); |