crypto: remove redundant type flags from tfm allocation
authorEric Biggers <ebiggers@google.com>
Sat, 30 Jun 2018 22:16:16 +0000 (15:16 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 8 Jul 2018 16:30:29 +0000 (00:30 +0800)
commit85d7311f1908b9ca20c10c2c23f5dbb93875f0c6
treebe536c8dbc57acdda5694565af7ca023a17685f8
parent2c95e6d97892235b5b98cd4805e47fac87c2226f
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>
Documentation/crypto/api-samples.rst
drivers/crypto/atmel-sha.c
drivers/crypto/inside-secure/safexcel_hash.c
drivers/crypto/marvell/hash.c
drivers/crypto/qce/sha.c
security/keys/dh.c