summaryrefslogtreecommitdiffstats
path: root/include/crypto/scatterwalk.h
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-07-23 19:01:33 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2018-08-03 12:06:03 +0200
commit8c30fbe63e4eff1b221f8db70ae5c48a9331eae0 (patch)
tree9e4e0fde893784009f5372deebd1c09c2b88b2c3 /include/crypto/scatterwalk.h
parentcrypto: skcipher - fix aligning block size in skcipher_copy_iv() (diff)
downloadlinux-8c30fbe63e4eff1b221f8db70ae5c48a9331eae0.tar.xz
linux-8c30fbe63e4eff1b221f8db70ae5c48a9331eae0.zip
crypto: scatterwalk - remove 'chain' argument from scatterwalk_crypto_chain()
All callers pass chain=0 to scatterwalk_crypto_chain(). Remove this unneeded parameter. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/scatterwalk.h')
-rw-r--r--include/crypto/scatterwalk.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/crypto/scatterwalk.h b/include/crypto/scatterwalk.h
index 880e6be9e95e..eac72840a7d2 100644
--- a/include/crypto/scatterwalk.h
+++ b/include/crypto/scatterwalk.h
@@ -22,14 +22,8 @@
#include <linux/scatterlist.h>
static inline void scatterwalk_crypto_chain(struct scatterlist *head,
- struct scatterlist *sg,
- int chain, int num)
+ struct scatterlist *sg, int num)
{
- if (chain) {
- head->length += sg->length;
- sg = sg_next(sg);
- }
-
if (sg)
sg_chain(head, num, sg);
else