diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-23 10:41:57 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-25 13:41:32 +0300 |
commit | 374d4ad18a0c4bc844dee42b3b43916e5f46608d (patch) | |
tree | 5ed06f31f36a694f9f8706a309f117735b2f1f00 /crypto/aead.c | |
parent | dd04446e48e859c913a395497ba1a289e707269a (diff) | |
download | linux-374d4ad18a0c4bc844dee42b3b43916e5f46608d.tar.xz |
crypto: aead - Remove unused cryptoff parameter
This patch removes the cryptoff parameter now that all users
set it to zero.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/aead.c')
-rw-r--r-- | crypto/aead.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/aead.c b/crypto/aead.c index 070e4b9e94f8..7c3d725bd264 100644 --- a/crypto/aead.c +++ b/crypto/aead.c @@ -106,10 +106,8 @@ static int old_crypt(struct aead_request *req, if (req->old) return crypt(req); - src = scatterwalk_ffwd(nreq->srcbuf, req->src, - req->assoclen + req->cryptoff); - dst = scatterwalk_ffwd(nreq->dstbuf, req->dst, - req->assoclen + req->cryptoff); + src = scatterwalk_ffwd(nreq->srcbuf, req->src, req->assoclen); + dst = scatterwalk_ffwd(nreq->dstbuf, req->dst, req->assoclen); aead_request_set_tfm(&nreq->subreq, aead); aead_request_set_callback(&nreq->subreq, aead_request_flags(req), |