diff options
author | Eric Biggers <ebiggers@google.com> | 2019-01-07 04:08:01 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-01-18 11:40:24 +0100 |
commit | 2b091e32a2d357beb9ffe283c696eec104729c2a (patch) | |
tree | bd5b55d403870ca4ce83bec07c3e923b57c4c8ba /crypto/testmgr.c | |
parent | crypto: shash - require neither or both ->export() and ->import() (diff) | |
download | linux-2b091e32a2d357beb9ffe283c696eec104729c2a.tar.xz linux-2b091e32a2d357beb9ffe283c696eec104729c2a.zip |
crypto: shash - remove pointless checks of shash_alg::{export,import}
crypto_init_shash_ops_async() only gives the ahash tfm non-NULL
->export() and ->import() if the underlying shash alg has these
non-NULL. This doesn't make sense because when an shash algorithm is
registered, shash_prepare_alg() sets a default ->export() and ->import()
if the implementor didn't provide them. And elsewhere it's assumed that
all shash algs and ahash tfms have non-NULL ->export() and ->import().
Therefore, remove these unnecessary, always-true conditions.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
0 files changed, 0 insertions, 0 deletions