diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-09-14 19:02:19 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-10-07 12:10:34 +0800 |
commit | 307257a3cee4038976f57b6a5d4e669f1440e2aa (patch) | |
tree | b9815bdff69860e2afd1a65cd9ee8e91e23967c3 /crypto | |
parent | 5f05c77778f6a22cc9287edd181e1fe5007e6151 (diff) | |
download | linux-crypto-307257a3cee4038976f57b6a5d4e669f1440e2aa.tar.gz linux-crypto-307257a3cee4038976f57b6a5d4e669f1440e2aa.zip |
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 960d8548..5e6df2a0 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); |