diff options
author | Eric Biggers <ebiggers@google.com> | 2018-06-30 18:16:16 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-07-08 12:30:29 -0400 |
commit | 85d7311f1908b9ca20c10c2c23f5dbb93875f0c6 (patch) | |
tree | be536c8dbc57acdda5694565af7ca023a17685f8 /security | |
parent | 2c95e6d97892235b5b98cd4805e47fac87c2226f (diff) |
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>
Diffstat (limited to 'security')
-rw-r--r-- | security/keys/dh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/keys/dh.c b/security/keys/dh.c index f7403821db7f..04072cb59a98 100644 --- a/security/keys/dh.c +++ b/security/keys/dh.c | |||
@@ -315,7 +315,7 @@ long __keyctl_dh_compute(struct keyctl_dh_params __user *params, | |||
315 | if (ret) | 315 | if (ret) |
316 | goto out3; | 316 | goto out3; |
317 | 317 | ||
318 | tfm = crypto_alloc_kpp("dh", CRYPTO_ALG_TYPE_KPP, 0); | 318 | tfm = crypto_alloc_kpp("dh", 0, 0); |
319 | if (IS_ERR(tfm)) { | 319 | if (IS_ERR(tfm)) { |
320 | ret = PTR_ERR(tfm); | 320 | ret = PTR_ERR(tfm); |
321 | goto out3; | 321 | goto out3; |