summaryrefslogtreecommitdiffstats
path: root/crypto/api.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-07-13 20:46:25 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2009-07-14 12:58:15 +0800
commit2ca33da1dea3ba53d1425226a6bac073c5e8568c (patch)
treebb231d9ecdd0c669f6b761fdb501e03621a2d9ae /crypto/api.c
parent6b1679f4a006acb5d76f8df686aa44c63d2555b4 (diff)
downloadlinux-stable-2ca33da1dea3ba53d1425226a6bac073c5e8568c.tar.gz
linux-stable-2ca33da1dea3ba53d1425226a6bac073c5e8568c.tar.bz2
linux-stable-2ca33da1dea3ba53d1425226a6bac073c5e8568c.zip
crypto: api - Remove frontend argument from extsize/init_tfm
As the extsize and init_tfm functions belong to the frontend the frontend argument is superfluous. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/api.c')
-rw-r--r--crypto/api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/api.c b/crypto/api.c
index c8ac18f7ac1e..798526d90538 100644
--- a/crypto/api.c
+++ b/crypto/api.c
@@ -457,7 +457,7 @@ void *crypto_create_tfm(struct crypto_alg *alg,
int err = -ENOMEM;
tfmsize = frontend->tfmsize;
- total = tfmsize + sizeof(*tfm) + frontend->extsize(alg, frontend);
+ total = tfmsize + sizeof(*tfm) + frontend->extsize(alg);
mem = kzalloc(total, GFP_KERNEL);
if (mem == NULL)
@@ -466,7 +466,7 @@ void *crypto_create_tfm(struct crypto_alg *alg,
tfm = (struct crypto_tfm *)(mem + tfmsize);
tfm->__crt_alg = alg;
- err = frontend->init_tfm(tfm, frontend);
+ err = frontend->init_tfm(tfm);
if (err)
goto out_free_tfm;