diff options
Diffstat (limited to 'crypto/shash.c')
-rw-r--r-- | crypto/shash.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/crypto/shash.c b/crypto/shash.c index 615a5f4d9b7a..fd92c03b38fc 100644 --- a/crypto/shash.c +++ b/crypto/shash.c | |||
@@ -270,7 +270,6 @@ static void crypto_exit_shash_ops_async(struct crypto_tfm *tfm) | |||
270 | int crypto_init_shash_ops_async(struct crypto_tfm *tfm) | 270 | int crypto_init_shash_ops_async(struct crypto_tfm *tfm) |
271 | { | 271 | { |
272 | struct crypto_alg *calg = tfm->__crt_alg; | 272 | struct crypto_alg *calg = tfm->__crt_alg; |
273 | struct shash_alg *alg = __crypto_shash_alg(calg); | ||
274 | struct crypto_ahash *crt = __crypto_ahash_cast(tfm); | 273 | struct crypto_ahash *crt = __crypto_ahash_cast(tfm); |
275 | struct crypto_shash **ctx = crypto_tfm_ctx(tfm); | 274 | struct crypto_shash **ctx = crypto_tfm_ctx(tfm); |
276 | struct crypto_shash *shash; | 275 | struct crypto_shash *shash; |
@@ -293,7 +292,6 @@ int crypto_init_shash_ops_async(struct crypto_tfm *tfm) | |||
293 | crt->digest = shash_async_digest; | 292 | crt->digest = shash_async_digest; |
294 | crt->setkey = shash_async_setkey; | 293 | crt->setkey = shash_async_setkey; |
295 | 294 | ||
296 | crt->digestsize = alg->digestsize; | ||
297 | crt->reqsize = sizeof(struct shash_desc) + crypto_shash_descsize(shash); | 295 | crt->reqsize = sizeof(struct shash_desc) + crypto_shash_descsize(shash); |
298 | 296 | ||
299 | return 0; | 297 | return 0; |