crypto: ahash - remove useless setting of type flags
authorEric Biggers <ebiggers@google.com>
Sat, 30 Jun 2018 22:16:12 +0000 (15:16 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 8 Jul 2018 16:30:25 +0000 (00:30 +0800)
commit6a38f62245c9d5217b696ec5aca6a5cf6351f615
tree0b796cd0bcdcb3f5da7157e565334c3bfc0989c6
parente50944e219f908968a6e01fbd0e8811a33bd5f04
crypto: ahash - remove useless setting of type flags

Many ahash algorithms set .cra_flags = CRYPTO_ALG_TYPE_AHASH.  But this
is redundant with the C structure type ('struct ahash_alg'), and
crypto_register_ahash() already sets the type flag automatically,
clearing any type flag that was already there.  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>
20 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/axis/artpec6_crypto.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/n2_core.c
drivers/crypto/omap-sham.c
drivers/crypto/s5p-sss.c
drivers/crypto/sahara.c
drivers/crypto/stm32/stm32-hash.c
drivers/crypto/sunxi-ss/sun4i-ss-core.c
drivers/crypto/talitos.c
drivers/crypto/ux500/hash/hash_core.c