Skip to content

Commit

Permalink
crypto: algboss - remove redundant setting of len to zero
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
Colin Ian King authored and herbertx committed Oct 7, 2017
1 parent 2fd23f2 commit e781c17
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion crypto/algboss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e781c17

Please sign in to comment.