crypto: remove redundant type flags from tfm allocation
Some crypto API users allocating a tfm with crypto_alloc_$FOO() are also specifying the type flags for $FOO, e.g. crypto_alloc_shash() with CRYPTO_ALG_TYPE_SHASH. But, that's redundant since the crypto API will override any specified type flag/mask with the correct ones. So, remove the unneeded flags. 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>
Showing
- Documentation/crypto/api-samples.rst 1 addition, 1 deletionDocumentation/crypto/api-samples.rst
- drivers/crypto/atmel-sha.c 1 addition, 3 deletionsdrivers/crypto/atmel-sha.c
- drivers/crypto/inside-secure/safexcel_hash.c 1 addition, 2 deletionsdrivers/crypto/inside-secure/safexcel_hash.c
- drivers/crypto/marvell/hash.c 1 addition, 2 deletionsdrivers/crypto/marvell/hash.c
- drivers/crypto/qce/sha.c 1 addition, 2 deletionsdrivers/crypto/qce/sha.c
- security/keys/dh.c 1 addition, 1 deletionsecurity/keys/dh.c
Loading
Please register or sign in to comment