projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fd23f2
)
crypto: algboss - remove redundant setting of len to zero
author
Colin Ian King
<colin.king@canonical.com>
Thu, 14 Sep 2017 18:02:19 +0000
(19:02 +0100)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Sat, 7 Oct 2017 04:10:34 +0000
(12:10 +0800)
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>
crypto/algboss.c
patch
|
blob
|
history
diff --git
a/crypto/algboss.c
b/crypto/algboss.c
index 960d8548171be5df969ebb8a03293ab6b672e7ee..5e6df2a087fa68d85f777bc7780bdc317ef34825 100644
(file)
--- 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);