summaryrefslogtreecommitdiff
path: root/crypto/ecdh.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2019-01-06 19:08:01 -0800
committerHerbert Xu <herbert@gondor.apana.org.au>2019-01-18 18:40:24 +0800
commit120faf3caa61be210fb1ff50ffa7f9e274760188 (patch)
tree5ff81c4a0edcbfee7cc599571e6c428d886e2922 /crypto/ecdh.c
parent2ab40e63dd048c38f750e3fe1848543a81694042 (diff)
downloadlinux-crypto-120faf3caa61be210fb1ff50ffa7f9e274760188.tar.gz
linux-crypto-120faf3caa61be210fb1ff50ffa7f9e274760188.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/ecdh.c')
0 files changed, 0 insertions, 0 deletions