aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/compress.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/compress.c')
-rw-r--r--crypto/compress.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/crypto/compress.c b/crypto/compress.c
index f3e07334afd0..eca182aa3380 100644
--- a/crypto/compress.c
+++ b/crypto/compress.c
@@ -41,21 +41,14 @@ int crypto_init_compress_flags(struct crypto_tfm *tfm, u32 flags)
41 41
42int crypto_init_compress_ops(struct crypto_tfm *tfm) 42int crypto_init_compress_ops(struct crypto_tfm *tfm)
43{ 43{
44 int ret = 0;
45 struct compress_tfm *ops = &tfm->crt_compress; 44 struct compress_tfm *ops = &tfm->crt_compress;
46
47 ret = tfm->__crt_alg->cra_compress.coa_init(tfm);
48 if (ret)
49 goto out;
50 45
51 ops->cot_compress = crypto_compress; 46 ops->cot_compress = crypto_compress;
52 ops->cot_decompress = crypto_decompress; 47 ops->cot_decompress = crypto_decompress;
53 48
54out: 49 return 0;
55 return ret;
56} 50}
57 51
58void crypto_exit_compress_ops(struct crypto_tfm *tfm) 52void crypto_exit_compress_ops(struct crypto_tfm *tfm)
59{ 53{
60 tfm->__crt_alg->cra_compress.coa_exit(tfm);
61} 54}