crypto: ahash - remove useless setting of cra_type
authorEric Biggers <ebiggers@google.com>
Sat, 30 Jun 2018 22:16:13 +0000 (15:16 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 8 Jul 2018 16:30:26 +0000 (00:30 +0800)
commitc87a405e3bacaae324bb05ee9a48aa9844688469
tree27f6da4f88b3c55969e39c066815847624c3c162
parent6a38f62245c9d5217b696ec5aca6a5cf6351f615
crypto: ahash - remove useless setting of cra_type

Some ahash algorithms set .cra_type = &crypto_ahash_type.  But this is
redundant with the C structure type ('struct ahash_alg'), and
crypto_register_ahash() already sets the .cra_type automatically.
Apparently the useless assignment has just been copy+pasted around.

So, remove the useless assignment from all the ahash algorithms.

This patch shouldn't change any actual behavior.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
14 files changed:
arch/arm/crypto/ghash-ce-glue.c
arch/x86/crypto/ghash-clmulni-intel_glue.c
arch/x86/crypto/sha1-mb/sha1_mb.c
arch/x86/crypto/sha256-mb/sha256_mb.c
arch/x86/crypto/sha512-mb/sha512_mb.c
drivers/crypto/bcm/cipher.c
drivers/crypto/caam/caamhash.c
drivers/crypto/ccp/ccp-crypto-aes-cmac.c
drivers/crypto/ccp/ccp-crypto-sha.c
drivers/crypto/ccree/cc_hash.c
drivers/crypto/chelsio/chcr_algo.c
drivers/crypto/sunxi-ss/sun4i-ss-core.c
drivers/crypto/talitos.c
drivers/crypto/ux500/hash/hash_core.c