From 307257a3cee4038976f57b6a5d4e669f1440e2aa Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Thu, 14 Sep 2017 19:02:19 +0100 Subject: 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 Signed-off-by: Herbert Xu --- crypto/algboss.c | 1 - 1 file changed, 1 deletion(-) (limited to 'crypto/algboss.c') 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); -- cgit v1.2.3