]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: remove useless initializations of cra_list
authorEric Biggers <ebiggers@google.com>
Wed, 14 Nov 2018 19:35:48 +0000 (11:35 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Nov 2018 06:26:55 +0000 (14:26 +0800)
commit11c19654cfbcf5397a7462b2b10ae6c1167db5bc
treed32474c083af2f55acaa1cba1701a19b91deb324
parent78b42ee4c128ead4ae2b761ad1bd43e9852ffc00
crypto: remove useless initializations of cra_list

Some algorithms initialize their .cra_list prior to registration.
But this is unnecessary since crypto_register_alg() will overwrite
.cra_list when adding the algorithm to the 'crypto_alg_list'.
Apparently the useless assignment has just been copy+pasted around.

So, remove the useless assignments.

Exception: paes_s390.c uses cra_list to check whether the algorithm is
registered or not, so I left that as-is for now.

This patch shouldn't change any actual behavior.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/sparc/crypto/aes_glue.c
arch/sparc/crypto/camellia_glue.c
arch/sparc/crypto/des_glue.c
crypto/lz4.c
crypto/lz4hc.c
drivers/crypto/bcm/cipher.c
drivers/crypto/omap-aes.c
drivers/crypto/omap-des.c
drivers/crypto/qce/ablkcipher.c
drivers/crypto/qce/sha.c
drivers/crypto/sahara.c